mskov commited on
Commit
4546c54
·
1 Parent(s): a65fa61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -111,14 +111,12 @@ def classify_toxicity(audio_file, text_input, classify_anxiety, emo_class, expli
111
  print("keys ", classification_output.keys())
112
 
113
  formatted_classification_output = ""
114
- for label, score in classification_output.items():
115
- formatted_classification_output += f"{label}: {score:.4f}\n"
116
 
117
  # plot.update(x=classification_df["labels"], y=classification_df["scores"])
118
  if toxicity_score > threshold:
119
  print("threshold exceeded!!")
120
 
121
- return toxicity_score, formatted_classification_output, transcribed_text
122
  # return f"Toxicity Score ({available_models[selected_model]}): {toxicity_score:.4f}"
123
  else:
124
  threshold = slider_logic(slider)
 
111
  print("keys ", classification_output.keys())
112
 
113
  formatted_classification_output = ""
 
 
114
 
115
  # plot.update(x=classification_df["labels"], y=classification_df["scores"])
116
  if toxicity_score > threshold:
117
  print("threshold exceeded!!")
118
 
119
+ return toxicity_score, classification_output, transcribed_text
120
  # return f"Toxicity Score ({available_models[selected_model]}): {toxicity_score:.4f}"
121
  else:
122
  threshold = slider_logic(slider)