Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -38,15 +38,13 @@ def reset(state):
|
|
38 |
demo = gr.Interface(
|
39 |
fn=transcribe,
|
40 |
inputs=[
|
41 |
-
gr.
|
42 |
'state',
|
43 |
-
gr.
|
44 |
],
|
45 |
outputs=[
|
46 |
"textbox",
|
47 |
-
"state"
|
48 |
-
gr.Button('Reset').click(reset, inputs=["state"], outputs=["state"])
|
49 |
-
|
50 |
],
|
51 |
|
52 |
live=True)
|
|
|
38 |
demo = gr.Interface(
|
39 |
fn=transcribe,
|
40 |
inputs=[
|
41 |
+
gr.components.Audio(source="microphone", type="filepath"),
|
42 |
'state',
|
43 |
+
gr.components.Audio(label="Upload Audio File", type="filepath", source="upload")
|
44 |
],
|
45 |
outputs=[
|
46 |
"textbox",
|
47 |
+
"state"
|
|
|
|
|
48 |
],
|
49 |
|
50 |
live=True)
|