Zain commited on
Commit
8898712
1 Parent(s): 4d3cc8e

Upload main.py

Browse files
Files changed (1) hide show
  1. main.py +7 -7
main.py CHANGED
@@ -68,13 +68,13 @@ async def predict(file: UploadFile = File(...)):
68
 
69
  class_names = ['angry', 'happy', 'sad', 'surprised', 'neutral', 'disgusted', 'fearful']
70
  stress_levels = {
71
- 'angry': 'High',
72
- 'happy': 'Normal',
73
- 'sad': 'Low',
74
- 'surprised': 'Low',
75
- 'neutral': 'Low',
76
- 'disgusted': 'Low',
77
- 'fearful': 'Low'
78
  }
79
 
80
  emotion = class_names[predicted_class]
 
68
 
69
  class_names = ['angry', 'happy', 'sad', 'surprised', 'neutral', 'disgusted', 'fearful']
70
  stress_levels = {
71
+ 'angry': 'high_stress',
72
+ 'happy': 'neutral',
73
+ 'sad': 'low_stress',
74
+ 'surprised': 'low_stress',
75
+ 'neutral': 'neutral',
76
+ 'disgusted': 'low_stress',
77
+ 'fearful': 'low_stress'
78
  }
79
 
80
  emotion = class_names[predicted_class]