Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def
|
4 |
-
return
|
5 |
|
6 |
-
demo = gr.Interface(
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def record_audio(audio):
|
4 |
+
return audio
|
5 |
|
6 |
+
demo = gr.Interface(
|
7 |
+
record_audio,
|
8 |
+
gr.Audio(source="microphone", type="filepath"),
|
9 |
+
"audio"
|
10 |
+
)
|
11 |
+
|
12 |
+
if __name__ == "__main__":
|
13 |
+
demo.launch()
|