avfranco commited on
Commit
763daee
1 Parent(s): ac8ebf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -54,6 +54,7 @@ with gr.Blocks() as transcriberUI:
54
  ask_question = gr.Textbox(label="Ask a question", visible=True)
55
  response_output = gr.Textbox(label="Response", visible=True)
56
  submit_question = gr.Button("Submit question", visible=True)
 
57
 
58
  def ask_question_callback(transcription,question):
59
  if ask_question:
@@ -67,4 +68,4 @@ with gr.Blocks() as transcriberUI:
67
  submit_question.click(ask_question_callback, outputs=[response_output], inputs=[transcribe, ask_question])
68
 
69
 
70
- transcriberUI.queue().launch(debug=True)
 
54
  ask_question = gr.Textbox(label="Ask a question", visible=True)
55
  response_output = gr.Textbox(label="Response", visible=True)
56
  submit_question = gr.Button("Submit question", visible=True)
57
+ clear_button = gr.ClearButton([transcribe,response_output,inp, ask_question])
58
 
59
  def ask_question_callback(transcription,question):
60
  if ask_question:
 
68
  submit_question.click(ask_question_callback, outputs=[response_output], inputs=[transcribe, ask_question])
69
 
70
 
71
+ transcriberUI.queue().launch()