avfranco commited on
Commit
ac8ebf8
1 Parent(s): 6b774e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -58,11 +58,10 @@ with gr.Blocks() as transcriberUI:
58
  def ask_question_callback(transcription,question):
59
  if ask_question:
60
  response = respond_to_question_llama(transcription, question)
61
- response_output.value = response
62
  else:
63
- response_output.value = "No question asked"
64
 
65
- return response_output
66
 
67
  inp.upload(audio_transcribe, inputs=inp, outputs=transcribe)
68
  submit_question.click(ask_question_callback, outputs=[response_output], inputs=[transcribe, ask_question])
 
58
  def ask_question_callback(transcription,question):
59
  if ask_question:
60
  response = respond_to_question_llama(transcription, question)
 
61
  else:
62
+ response = "No question asked"
63
 
64
+ return response
65
 
66
  inp.upload(audio_transcribe, inputs=inp, outputs=transcribe)
67
  submit_question.click(ask_question_callback, outputs=[response_output], inputs=[transcribe, ask_question])