research14 commited on
Commit
4281734
1 Parent(s): 049fed4

testing output format for lftk

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -31,11 +31,13 @@ def linguistic_features_fn(message):
31
  # Use LFTK to dynamically extract handcrafted linguistic features
32
  extracted_features = LFTK.extract(features = ["a_word_ps", "a_kup_pw", "n_noun"])
33
 
34
- formatted_output = json.dumps(extracted_features, indent=2)
 
35
 
36
- print(formatted_output)
 
37
 
38
- return formatted_output
39
 
40
  def update_api_key(new_key):
41
  print("update_api_key ran")
 
31
  # Use LFTK to dynamically extract handcrafted linguistic features
32
  extracted_features = LFTK.extract(features = ["a_word_ps", "a_kup_pw", "n_noun"])
33
 
34
+ # Extract values only and convert them to a list
35
+ values_list = list(extracted_features.values())
36
 
37
+ # Print the values without braces and quotes
38
+ print(*values_list)
39
 
40
+ return values_list
41
 
42
  def update_api_key(new_key):
43
  print("update_api_key ran")