Kr08 commited on
Commit
3bb825c
·
verified ·
1 Parent(s): 919e3f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 results if 'translated' in item)
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],