Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -294,8 +294,8 @@ with gr.Blocks() as demo:
|
|
294 |
detected_lang = gr.Textbox(label="Detected Language", visible=False)
|
295 |
summary_output = gr.Textbox(label="Summary", visible=True, interactive=False)
|
296 |
full_audio_output = gr.Audio(label="Generated Audio", visible=True)
|
297 |
-
ner_output = gr.Textbox(label="Extracted Entities", visible=
|
298 |
-
wordcloud_output = gr.Image(label="Word Cloud", visible=
|
299 |
|
300 |
# Step 1: Fetch Text & Detect Language First
|
301 |
process_text_button.click(
|
@@ -310,7 +310,7 @@ with gr.Blocks() as demo:
|
|
310 |
generate_wordcloud,
|
311 |
inputs=[extracted_text],
|
312 |
outputs=[wordcloud_output],
|
313 |
-
show_progress=
|
314 |
)
|
315 |
|
316 |
process_summary_button.click(hierarchical_summarization, inputs=[extracted_text], outputs=[summary_output])
|
|
|
294 |
detected_lang = gr.Textbox(label="Detected Language", visible=False)
|
295 |
summary_output = gr.Textbox(label="Summary", visible=True, interactive=False)
|
296 |
full_audio_output = gr.Audio(label="Generated Audio", visible=True)
|
297 |
+
ner_output = gr.Textbox(label="Extracted Entities", visible=True, interactive=False)
|
298 |
+
wordcloud_output = gr.Image(label="Word Cloud", visible=True)
|
299 |
|
300 |
# Step 1: Fetch Text & Detect Language First
|
301 |
process_text_button.click(
|
|
|
310 |
generate_wordcloud,
|
311 |
inputs=[extracted_text],
|
312 |
outputs=[wordcloud_output],
|
313 |
+
show_progress=True
|
314 |
)
|
315 |
|
316 |
process_summary_button.click(hierarchical_summarization, inputs=[extracted_text], outputs=[summary_output])
|