mskov commited on
Commit
fb856de
·
1 Parent(s): 33b1b5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,9 +41,9 @@ with gr.Blocks() as iface:
41
  aud_input = gr.Audio(source="upload", type="filepath", label="Upload Audio File"),
42
  with gr.Row():
43
  text = gr.Textbox(label="Enter Text", placeholder="Enter text here..."),
44
- submit = gr.Button(label="Submit", type="submit")
45
  radio = gr.Radio(available_models, type="value", label="Select Model")
46
  out_text = gr.Textbox()
47
- submit.click(fn=classify_toxicity, inputs=[aud_input, text, radio], outputs=out_text)
48
 
49
  iface.launch()
 
41
  aud_input = gr.Audio(source="upload", type="filepath", label="Upload Audio File"),
42
  with gr.Row():
43
  text = gr.Textbox(label="Enter Text", placeholder="Enter text here..."),
44
+ submit_btn = gr.Button(label="Submit", type="submit")
45
  radio = gr.Radio(available_models, type="value", label="Select Model")
46
  out_text = gr.Textbox()
47
+ submit_btn.click(fn=classify_toxicity, inputs=[aud_input, text, radio], outputs=out_text)
48
 
49
  iface.launch()