Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,6 @@ def scrape_and_summarize(prompt, source):
|
|
38 |
config=graph_config
|
39 |
)
|
40 |
result = smart_scraper_graph.run()
|
41 |
-
exec_info = smart_scraper_graph.get_execution_info()
|
42 |
|
43 |
# Ensure the result is properly formatted as JSON
|
44 |
if isinstance(result, dict):
|
@@ -74,12 +73,11 @@ with gr.Blocks() as demo:
|
|
74 |
|
75 |
with gr.Column():
|
76 |
result_output = gr.JSON(label="Result")
|
77 |
-
|
78 |
-
|
79 |
scrape_button.click(
|
80 |
scrape_and_summarize,
|
81 |
inputs=[prompt_input, source_input],
|
82 |
-
outputs=[result_output
|
83 |
)
|
84 |
|
85 |
# Launch the Gradio app
|
|
|
38 |
config=graph_config
|
39 |
)
|
40 |
result = smart_scraper_graph.run()
|
|
|
41 |
|
42 |
# Ensure the result is properly formatted as JSON
|
43 |
if isinstance(result, dict):
|
|
|
73 |
|
74 |
with gr.Column():
|
75 |
result_output = gr.JSON(label="Result")
|
76 |
+
|
|
|
77 |
scrape_button.click(
|
78 |
scrape_and_summarize,
|
79 |
inputs=[prompt_input, source_input],
|
80 |
+
outputs=[result_output]
|
81 |
)
|
82 |
|
83 |
# Launch the Gradio app
|