mskov commited on
Commit
7dd4190
1 Parent(s): 5f248d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -160,10 +160,10 @@ def classify_toxicity(audio_file, text_input, classify_anxiety, emo_class, expli
160
  average_logprobs -= internal_lm_average_logprobs
161
  scores = average_logprobs.softmax(-1).tolist()
162
  holder1 = {class_name: score for class_name, score in zip(class_names, scores)}
163
- miso_label_dict = {label: score for label, score in classify_anxiety[0].items()}
164
  holder2 = ""
165
  holder3= " "
166
- return holder1, miso_label_dict, holder2, holder3
167
 
168
  def positive_affirmations():
169
  affirmations = [
 
160
  average_logprobs -= internal_lm_average_logprobs
161
  scores = average_logprobs.softmax(-1).tolist()
162
  holder1 = {class_name: score for class_name, score in zip(class_names, scores)}
163
+ # miso_label_dict = {label: score for label, score in classify_anxiety[0].items()}
164
  holder2 = ""
165
  holder3= " "
166
+ return holder1, holder1, holder2, holder3
167
 
168
  def positive_affirmations():
169
  affirmations = [