Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,6 @@ def classify_toxicity(audio_file, text_input, classify_anxiety):
|
|
85 |
# return f"Toxicity Score ({available_models[selected_model]}): {toxicity_score:.4f}"
|
86 |
else:
|
87 |
model = whisper.load_model("large")
|
88 |
-
model_cache[model_name] = model
|
89 |
# model = model_cache[model_name]
|
90 |
# class_names = classify_anxiety.split(",")
|
91 |
class_names_list = class_options.get(classify_anxiety, [])
|
|
|
85 |
# return f"Toxicity Score ({available_models[selected_model]}): {toxicity_score:.4f}"
|
86 |
else:
|
87 |
model = whisper.load_model("large")
|
|
|
88 |
# model = model_cache[model_name]
|
89 |
# class_names = classify_anxiety.split(",")
|
90 |
class_names_list = class_options.get(classify_anxiety, [])
|