mizoru commited on
Commit
0c8ffff
1 Parent(s): b865c6d

remove .outputs

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,7 +18,7 @@ def main():
18
  with gr.Row():
19
  audio_input = gr.Audio(type="filepath")
20
  button1 = gr.Button("Process Audio")
21
- figure = gr.outputs.Image()
22
 
23
  button1.click(process_audio, inputs=[audio_input, model], outputs=figure)
24
 
@@ -30,7 +30,7 @@ def main():
30
  window_size_samples = gr.Dropdown(label="Window Size Samples", choices=[512, 1024, 1536], default=1536)
31
  speech_pad_ms = gr.Number(label="Speech Pad (ms)", default=30)
32
  button2 = gr.Button("Process Parameters")
33
- output_text = gr.outputs.Textbox()
34
 
35
  button2.click(process_parameters, inputs=[probs, threshold, min_speech_duration_ms, min_silence_duration_ms, window_size_samples, speech_pad_ms], outputs=output_text)
36
 
 
18
  with gr.Row():
19
  audio_input = gr.Audio(type="filepath")
20
  button1 = gr.Button("Process Audio")
21
+ figure = gr.Image()
22
 
23
  button1.click(process_audio, inputs=[audio_input, model], outputs=figure)
24
 
 
30
  window_size_samples = gr.Dropdown(label="Window Size Samples", choices=[512, 1024, 1536], default=1536)
31
  speech_pad_ms = gr.Number(label="Speech Pad (ms)", default=30)
32
  button2 = gr.Button("Process Parameters")
33
+ output_text = gr.Textbox()
34
 
35
  button2.click(process_parameters, inputs=[probs, threshold, min_speech_duration_ms, min_silence_duration_ms, window_size_samples, speech_pad_ms], outputs=output_text)
36