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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -55,16 +55,16 @@ def classify_emotion(audio):
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 = []
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