mskov commited on
Commit
e385084
·
1 Parent(s): 5864c05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -162,7 +162,11 @@ def classify_toxicity(audio_file, text_input, classify_anxiety, emo_class, expli
162
  return {class_name: score for class_name, score in zip(class_names, scores)}
163
  if toxicity_score > threshold:
164
  print("threshold exceeded!! Launch intervention")
165
- return classify_anxiety
 
 
 
 
166
 
167
  def positive_affirmations():
168
  affirmations = [
 
162
  return {class_name: score for class_name, score in zip(class_names, scores)}
163
  if toxicity_score > threshold:
164
  print("threshold exceeded!! Launch intervention")
165
+ miso_label_dict = {label: score for label, score in classify_anxiety[0].items()}
166
+ holder1 = ""
167
+ holder2 = ""
168
+ holder3= " "
169
+ return holder1, miso_label_dict, holder2, holder3
170
 
171
  def positive_affirmations():
172
  affirmations = [