Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
! pip install gradio
|
2 |
+
import gradio as gr
|
3 |
+
def emotiondetection(audio):
|
4 |
+
text = "emotion"
|
5 |
+
return text
|
6 |
+
|
7 |
+
gr.Interface(
|
8 |
+
fn = emotiondetection,
|
9 |
+
inputs = gr.Audio(source="microphone", type="filepath"),
|
10 |
+
outputs = "text").launch()
|