Spaces:
Sleeping
Sleeping
T.Masuda
commited on
Commit
·
aba6d47
1
Parent(s):
ed5246e
update app.py
Browse files
app.py
CHANGED
@@ -36,11 +36,11 @@ with gr.Blocks(title='OpenAI Whisper Demo') as app:
|
|
36 |
with gr.Column():
|
37 |
inputs = []
|
38 |
with gr.Tab('microphone') as tab1:
|
39 |
-
mic = gr.Audio(
|
40 |
inputs.append(mic)
|
41 |
tab1.select(tab_select, inputs=state, outputs=state)
|
42 |
with gr.Tab('upload') as tab2:
|
43 |
-
upload = gr.Audio(
|
44 |
inputs.append(upload)
|
45 |
tab2.select(tab_select, inputs=state, outputs=state)
|
46 |
with gr.Row():
|
|
|
36 |
with gr.Column():
|
37 |
inputs = []
|
38 |
with gr.Tab('microphone') as tab1:
|
39 |
+
mic = gr.Audio(sources='microphone', type='filepath')
|
40 |
inputs.append(mic)
|
41 |
tab1.select(tab_select, inputs=state, outputs=state)
|
42 |
with gr.Tab('upload') as tab2:
|
43 |
+
upload = gr.Audio(sources='upload', type='filepath')
|
44 |
inputs.append(upload)
|
45 |
tab2.select(tab_select, inputs=state, outputs=state)
|
46 |
with gr.Row():
|