Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -136,7 +136,7 @@ with gr.Blocks() as iface:
|
|
| 136 |
process_button = gr.Button("Process Audio")
|
| 137 |
|
| 138 |
with gr.Column():
|
| 139 |
-
|
| 140 |
# transcription_output = gr.Textbox(label="Transcription/Translation", lines=10)
|
| 141 |
# full_text_output = gr.Textbox(label="Full Text", lines=5)
|
| 142 |
|
|
@@ -160,14 +160,14 @@ with gr.Blocks() as iface:
|
|
| 160 |
|
| 161 |
summarize_button.click(
|
| 162 |
summarize_text,
|
| 163 |
-
inputs=[
|
| 164 |
# inputs=[full_text_output],
|
| 165 |
outputs=[summary_output]
|
| 166 |
)
|
| 167 |
|
| 168 |
answer_button.click(
|
| 169 |
answer_question,
|
| 170 |
-
inputs=[
|
| 171 |
outputs=[answer_output]
|
| 172 |
)
|
| 173 |
|
|
|
|
| 136 |
process_button = gr.Button("Process Audio")
|
| 137 |
|
| 138 |
with gr.Column():
|
| 139 |
+
ASR_RESULT = gr.Textbox(label="Output")
|
| 140 |
# transcription_output = gr.Textbox(label="Transcription/Translation", lines=10)
|
| 141 |
# full_text_output = gr.Textbox(label="Full Text", lines=5)
|
| 142 |
|
|
|
|
| 160 |
|
| 161 |
summarize_button.click(
|
| 162 |
summarize_text,
|
| 163 |
+
inputs=[ASR_RESULT],
|
| 164 |
# inputs=[full_text_output],
|
| 165 |
outputs=[summary_output]
|
| 166 |
)
|
| 167 |
|
| 168 |
answer_button.click(
|
| 169 |
answer_question,
|
| 170 |
+
inputs=[ASR_RESULT, question_input],
|
| 171 |
outputs=[answer_output]
|
| 172 |
)
|
| 173 |
|