mskov commited on
Commit
265437e
1 Parent(s): c7eb4e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -55,15 +55,15 @@ def classify_emotion(audio):
55
 
56
  def slider_logic(slider):
57
  threshold = 0
58
- if slider == 1:
59
  threshold = .98
60
- elif slider == 2:
61
  threshold = .88
62
  elif slider == 3:
63
  threshold = .77
64
- elif slider == 4:
65
  threshold = .66
66
- elif slider == 5:
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 = []