Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ def classify_toxicity(audio_file, text_input, classify_anxiety):
|
|
105 |
# class_names=classify_anxiety,
|
106 |
tokenizer=tokenizer,
|
107 |
)
|
108 |
-
audio_features = classify.calculate_audio_features(
|
109 |
average_logprobs = classify.calculate_average_logprobs(
|
110 |
model=model,
|
111 |
audio_features=audio_features,
|
|
|
105 |
# class_names=classify_anxiety,
|
106 |
tokenizer=tokenizer,
|
107 |
)
|
108 |
+
audio_features = classify.calculate_audio_features(audio_file, model)
|
109 |
average_logprobs = classify.calculate_average_logprobs(
|
110 |
model=model,
|
111 |
audio_features=audio_features,
|