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