barbaroo commited on
Commit
266358f
1 Parent(s): 4644447

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -38,15 +38,13 @@ def reset(state):
38
  demo = gr.Interface(
39
  fn=transcribe,
40
  inputs=[
41
- gr.inputs.Audio(source="microphone", type="filepath"),
42
  'state',
43
- gr.inputs.Audio(label="Upload Audio File", type="filepath", source="upload")
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)