Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -95,8 +95,8 @@ def classify_toxicity(audio_file, text_input, classify_anxiety):
|
|
95 |
class_names = class_str.split(",")
|
96 |
print("class names ", class_names, "classify_anxiety ", classify_anxiety)
|
97 |
|
98 |
-
|
99 |
-
tokenizer= WhisperTokenizer.from_pretrained("openai/whisper-large")
|
100 |
|
101 |
internal_lm_average_logprobs = classify.calculate_internal_lm_average_logprobs(
|
102 |
model=model,
|
|
|
95 |
class_names = class_str.split(",")
|
96 |
print("class names ", class_names, "classify_anxiety ", classify_anxiety)
|
97 |
|
98 |
+
tokenizer = get_tokenizer("large")
|
99 |
+
# tokenizer= WhisperTokenizer.from_pretrained("openai/whisper-large")
|
100 |
|
101 |
internal_lm_average_logprobs = classify.calculate_internal_lm_average_logprobs(
|
102 |
model=model,
|