Commit ·
faa4ea2
1
Parent(s): 7b8ca0f
Update app.py
Browse files
app.py
CHANGED
|
@@ -305,10 +305,5 @@ def ser(audio_file):
|
|
| 305 |
return emotions_dict.get(x, "Unknown")
|
| 306 |
except Exception as e:
|
| 307 |
return f"Error: {str(e)}"
|
| 308 |
-
demo = gr.Interface(fn=ser,inputs=gr.Audio(source="microphone", type="filepath"), outputs="text",theme="default",title="Speech Emotion Recognition", description="Click the button to start detecting emotion from your speech."
|
| 309 |
-
css=""".output {
|
| 310 |
-
background-color: #f0f0f0;
|
| 311 |
-
border-radius: 10px;
|
| 312 |
-
padding: 20px;
|
| 313 |
-
}""" )
|
| 314 |
demo.launch()
|
|
|
|
| 305 |
return emotions_dict.get(x, "Unknown")
|
| 306 |
except Exception as e:
|
| 307 |
return f"Error: {str(e)}"
|
| 308 |
+
demo = gr.Interface(fn=ser,inputs=gr.Audio(source="microphone", type="filepath"), outputs="text",theme="default",title="Speech Emotion Recognition", description="Click the button to start detecting emotion from your speech.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 309 |
demo.launch()
|