Spaces:
Runtime error
Runtime error
Commit
•
22488de
1
Parent(s):
228eb99
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,16 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def identity(
|
4 |
-
return
|
5 |
|
6 |
with gr.Blocks() as demo:
|
7 |
with gr.Row():
|
8 |
with gr.Column():
|
9 |
audio_in = gr.Audio(sources=["microphone"], type="filepath")
|
10 |
-
run_button = gr.Button("Generate
|
11 |
with gr.Column():
|
12 |
-
audio_out = gr.Audio(type="filepath"
|
|
|
13 |
run_button.click(fn=identity, inputs=[audio_in], outputs=[audio_out])
|
14 |
|
15 |
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def identity(audio):
|
4 |
+
return audio
|
5 |
|
6 |
with gr.Blocks() as demo:
|
7 |
with gr.Row():
|
8 |
with gr.Column():
|
9 |
audio_in = gr.Audio(sources=["microphone"], type="filepath")
|
10 |
+
run_button = gr.Button("Generate audio")
|
11 |
with gr.Column():
|
12 |
+
audio_out = gr.Audio(type="filepath")
|
13 |
+
|
14 |
run_button.click(fn=identity, inputs=[audio_in], outputs=[audio_out])
|
15 |
|
16 |
demo.launch()
|