kyawhtetpaingwin111 commited on
Commit
2ea00df
1 Parent(s): 7c04964

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -19
app.py CHANGED
@@ -60,26 +60,9 @@ def classify_audio(audio_file):
60
  return dict(zip(categories, map(float, probs)))
61
 
62
  description = """
63
- # Emotion Recognition from Audio
64
 
65
- Welcome to the app that recognizes emotion from the audio!
66
-
67
- ## Instructions:
68
- - Upload or record audio (no more than 20 seconds for now)
69
- - Wait for processing and prediction from the model.
70
-
71
- ## Emotions the app recognizes:
72
- 1) Anger
73
- 2) Disgust
74
- 3) Fear
75
- 4) Happiness
76
- 5) Pleasant Surprise
77
- 6) Sadness
78
- 7) Neutral
79
-
80
- ## About:
81
- This application is actually using a computer vision model (an adaptation of ResNet) for detection and the model
82
- has been trained on a relatively small dataset of 2,380 recordings from two actors saying phrases in different emotions.
83
 
84
  For more information, visit this [Github repo](https://github.com/KyawHtetWin/issem-machine-learning/tree/main/audio_emotion_detector)
85
  """
 
60
  return dict(zip(categories, map(float, probs)))
61
 
62
  description = """
63
+ ## Welcome to the app that recognizes emotion from the audio! Upload/record your audio (no more than 20 seconds) and see the model prediction of the emotions.
64
 
65
+ ## 7 Emotions the app recognizes: Anger, Disgust, Fear, Happiness, Pleasant Surprise (ps), Sadness, Neutral
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
 
67
  For more information, visit this [Github repo](https://github.com/KyawHtetWin/issem-machine-learning/tree/main/audio_emotion_detector)
68
  """