Spaces:
Sleeping
Sleeping
Update alternative-2.py
Browse files- alternative-2.py +3 -4
alternative-2.py
CHANGED
|
@@ -155,10 +155,9 @@ with gr.Blocks(theme="sudeepshouche/minimalist") as demo:
|
|
| 155 |
title_output = gr.Textbox(label="Page Title")
|
| 156 |
json_output = gr.JSON(label="Extracted Data (JSON)")
|
| 157 |
text_output = gr.Textbox(label="Extracted Data (Text)")
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
.then(take_webdata, inputs=extracted_url, outputs=[screenshot_output, title_output], queue=True)
|
| 162 |
|
| 163 |
# Launch the Gradio interface
|
| 164 |
demo.launch()
|
|
|
|
| 155 |
title_output = gr.Textbox(label="Page Title")
|
| 156 |
json_output = gr.JSON(label="Extracted Data (JSON)")
|
| 157 |
text_output = gr.Textbox(label="Extracted Data (Text)")
|
| 158 |
+
|
| 159 |
+
btn.click(extractDataFromUrls, inputs=[url_input, loader_dropdown], outputs=[json_output, text_output, extracted_url]) \
|
| 160 |
+
.then(take_webdata, inputs=extracted_url, outputs=[screenshot_output, title_output], queue=True)
|
|
|
|
| 161 |
|
| 162 |
# Launch the Gradio interface
|
| 163 |
demo.launch()
|