Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|
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 = [
|