Update app.py
Browse files
app.py
CHANGED
@@ -158,7 +158,7 @@ with gr.Blocks() as iface:
|
|
158 |
outputs=[ASR_RESULT]
|
159 |
)
|
160 |
logger.info(f"{ASR_RESULT}")
|
161 |
-
translated_text = ''.join(item['translated'] for item in
|
162 |
summarize_button.click(
|
163 |
summarize_text,
|
164 |
inputs=[translated_text],
|
|
|
158 |
outputs=[ASR_RESULT]
|
159 |
)
|
160 |
logger.info(f"{ASR_RESULT}")
|
161 |
+
translated_text = ''.join(item['translated'] for item in ASR_RESULT if 'translated' in item)
|
162 |
summarize_button.click(
|
163 |
summarize_text,
|
164 |
inputs=[translated_text],
|