Update app.py
Browse files
app.py
CHANGED
@@ -252,6 +252,19 @@ with gr.Blocks(theme=gr.themes.Soft(), css="""
|
|
252 |
- π In-Depth Data Analytics
|
253 |
- π» Custom Software & Multi-Agent Systems
|
254 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
|
256 |
with gr.TabItem("π Performance"):
|
257 |
gr.Plot(value=create_performance_comparison())
|
|
|
252 |
- π In-Depth Data Analytics
|
253 |
- π» Custom Software & Multi-Agent Systems
|
254 |
""")
|
255 |
+
|
256 |
+
with gr.TabItem("π Web Research"):
|
257 |
+
with gr.Row():
|
258 |
+
url_input = gr.Textbox(label="Enter URL for Analysis", placeholder="https://example.com", lines=1)
|
259 |
+
research_query = gr.Textbox(label="Research Query", placeholder="Enter your research topic", lines=1)
|
260 |
+
with gr.Row():
|
261 |
+
scrape_button = gr.Button("π Scrape Website")
|
262 |
+
research_button = gr.Button("π Research Topic")
|
263 |
+
with gr.Row():
|
264 |
+
scrape_output = gr.Textbox(label="Scraped Content", lines=10)
|
265 |
+
research_output = gr.Textbox(label="Research Results", lines=10)
|
266 |
+
scrape_button.click(web_scrape_agent, inputs=url_input, outputs=scrape_output)
|
267 |
+
research_button.click(research_agent, inputs=research_query, outputs=research_output)
|
268 |
|
269 |
with gr.TabItem("π Performance"):
|
270 |
gr.Plot(value=create_performance_comparison())
|