Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
-
|
64 |
|
65 |
-
return
|
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])
|