sanchit-gandhi HF staff commited on
Commit
22488de
1 Parent(s): 228eb99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,15 +1,16 @@
1
  import gradio as gr
2
 
3
- def identity(input):
4
- return input
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", variant="primary")
11
  with gr.Column():
12
- audio_out = gr.Audio(type="filepath", elem_id="audio_out")
 
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()