Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ drive.mount('/content/drive')
|
|
3 |
|
4 |
"""Install Dependencies"""
|
5 |
|
6 |
-
pip install transformers librosa torch soundfile numba numpy TTS datasets gradio protobuf==3.20.3
|
7 |
|
8 |
"""Emotion Detection (Using Text Dataset)
|
9 |
|
@@ -271,6 +271,8 @@ emotion_settings = {
|
|
271 |
"anger": {"pitch": 1.0, "speed": 1.2},
|
272 |
"fear": {"pitch": 0.9, "speed": 1.0},
|
273 |
"surprise": {"pitch": 1.3, "speed": 1.2},
|
|
|
|
|
274 |
"neutral": {"pitch": 1.0, "speed": 1.0},
|
275 |
}
|
276 |
|
|
|
3 |
|
4 |
"""Install Dependencies"""
|
5 |
|
6 |
+
!pip install transformers librosa torch soundfile numba numpy TTS datasets gradio protobuf==3.20.3
|
7 |
|
8 |
"""Emotion Detection (Using Text Dataset)
|
9 |
|
|
|
271 |
"anger": {"pitch": 1.0, "speed": 1.2},
|
272 |
"fear": {"pitch": 0.9, "speed": 1.0},
|
273 |
"surprise": {"pitch": 1.3, "speed": 1.2},
|
274 |
+
"disgust": {"pitch": 0.7, "speed": 0.8},
|
275 |
+
"shame": {"pitch": 0.6, "speed": 0.7},
|
276 |
"neutral": {"pitch": 1.0, "speed": 1.0},
|
277 |
}
|
278 |
|