Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -91,7 +91,7 @@ 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 |
-
plot.update(x=classification_df["labels"], y=classification_df["scores"]
|
95 |
|
96 |
return toxicity_score, classification_df, transcribed_text
|
97 |
# return f"Toxicity Score ({available_models[selected_model]}): {toxicity_score:.4f}"
|
|
|
91 |
classification_df = pd.DataFrame.from_dict(classification_output)
|
92 |
print("df ", classification_df.columns)
|
93 |
|
94 |
+
plot.update(x=classification_df["labels"], y=classification_df["scores"])
|
95 |
|
96 |
return toxicity_score, classification_df, transcribed_text
|
97 |
# return f"Toxicity Score ({available_models[selected_model]}): {toxicity_score:.4f}"
|