mskov commited on
Commit
7a481f6
·
1 Parent(s): cbd996a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -83,7 +83,9 @@ def classify_toxicity(audio_file, text_input, classify_anxiety):
83
  # return f"Toxicity Score ({available_models[selected_model]}): {toxicity_score:.4f}"
84
  else:
85
  # model = model_cache[model_name]
86
- class_names = classify_anxiety.split(",")
 
 
87
  # tokenizer = get_tokenizer(multilingual=".en" not in model_name)
88
  tokenizer= WhisperTokenizer.from_pretrained("openai/whisper-large")
89
  model = "whisper-large"
 
83
  # return f"Toxicity Score ({available_models[selected_model]}): {toxicity_score:.4f}"
84
  else:
85
  # model = model_cache[model_name]
86
+ # class_names = classify_anxiety.split(",")
87
+ class_names= class_options.get(classify_anxiety, [])
88
+ print("class names ", class_names, "classify_anxiety ", classify_anxiety)
89
  # tokenizer = get_tokenizer(multilingual=".en" not in model_name)
90
  tokenizer= WhisperTokenizer.from_pretrained("openai/whisper-large")
91
  model = "whisper-large"