Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -91,7 +91,8 @@ def classify_toxicity(audio_file, text_input, classify_anxiety, emo_class, expli
|
|
91 |
classification_df = pd.DataFrame.from_dict(classification_output)
|
92 |
print("df ", classification_df.columns)
|
93 |
|
94 |
-
|
|
|
95 |
return toxicity_score, classification_df, transcribed_text
|
96 |
# return f"Toxicity Score ({available_models[selected_model]}): {toxicity_score:.4f}"
|
97 |
else:
|
|
|
91 |
classification_df = pd.DataFrame.from_dict(classification_output)
|
92 |
print("df ", classification_df.columns)
|
93 |
|
94 |
+
plot.update(x=x_values, y=y_values, xlabel="Labels", ylabel="Scores")
|
95 |
+
|
96 |
return toxicity_score, classification_df, transcribed_text
|
97 |
# return f"Toxicity Score ({available_models[selected_model]}): {toxicity_score:.4f}"
|
98 |
else:
|