Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -65,15 +65,15 @@ def fetch_and_display_content(url):
|
|
65 |
#return cleaned_text, metadata, detected_lang, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
66 |
|
67 |
return (
|
68 |
-
cleaned_text,
|
69 |
-
metadata,
|
70 |
-
detected_lang,
|
71 |
-
gr.update(visible=True),
|
72 |
-
gr.update(visible=True),
|
73 |
-
gr.update(visible=True),
|
74 |
-
gr.update(visible=True),
|
75 |
-
json.dumps([]),
|
76 |
-
""
|
77 |
)
|
78 |
|
79 |
### 2οΈβ£ Cleaning Function
|
@@ -289,11 +289,11 @@ with gr.Blocks() as demo:
|
|
289 |
inputs=[url_input],
|
290 |
|
291 |
outputs=[
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
]
|
298 |
)
|
299 |
|
|
|
65 |
#return cleaned_text, metadata, detected_lang, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
66 |
|
67 |
return (
|
68 |
+
cleaned_text,
|
69 |
+
gr.update(value=metadata, visible=True),
|
70 |
+
detected_lang,
|
71 |
+
gr.update(visible=True),
|
72 |
+
gr.update(visible=True),
|
73 |
+
gr.update(visible=True),
|
74 |
+
gr.update(visible=True),
|
75 |
+
json.dumps([]),
|
76 |
+
""
|
77 |
)
|
78 |
|
79 |
### 2οΈβ£ Cleaning Function
|
|
|
289 |
inputs=[url_input],
|
290 |
|
291 |
outputs=[
|
292 |
+
extracted_text, metadata_output, detected_lang,
|
293 |
+
process_summary_button, process_audio_button,
|
294 |
+
summary_output, ner_output, # β
Existing Outputs
|
295 |
+
gr.update(visible=True), # β
Ensures Extracted Text Box is shown
|
296 |
+
gr.update(visible=True) # β
Ensures Metadata Box is shown
|
297 |
]
|
298 |
)
|
299 |
|