Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -55,16 +55,16 @@ def classify_emotion(audio):
|
|
55 |
|
56 |
def slider_logic(slider):
|
57 |
threshold = 0
|
58 |
-
if slider ==
|
59 |
-
threshold = .
|
60 |
-
elif slider == 4:
|
61 |
-
threshold = .88
|
62 |
-
elif slider == 3:
|
63 |
-
threshold = .77
|
64 |
elif slider == 2:
|
65 |
-
threshold = .
|
66 |
-
elif slider ==
|
67 |
-
threshold = .
|
|
|
|
|
|
|
|
|
68 |
else:
|
69 |
threshold = []
|
70 |
return threshold
|
|
|
55 |
|
56 |
def slider_logic(slider):
|
57 |
threshold = 0
|
58 |
+
if slider == 1:
|
59 |
+
threshold = .80
|
|
|
|
|
|
|
|
|
60 |
elif slider == 2:
|
61 |
+
threshold = .60
|
62 |
+
elif slider == 3:
|
63 |
+
threshold = .50
|
64 |
+
elif slider == 4:
|
65 |
+
threshold = .40
|
66 |
+
elif slider == 5:
|
67 |
+
threshold = .30
|
68 |
else:
|
69 |
threshold = []
|
70 |
return threshold
|