Spaces:
Sleeping
Sleeping
Commit
·
f96237c
1
Parent(s):
269dc01
fix: server fix
Browse files
server.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import asyncio
|
| 3 |
from main import WebScrapingOrchestrator
|
|
|
|
| 4 |
|
| 5 |
orchestrator = WebScrapingOrchestrator()
|
| 6 |
|
|
@@ -31,7 +32,7 @@ with gr.Blocks(title="MCP Web Scraper") as demo:
|
|
| 31 |
scrape_button.click(scrape, inputs=url_input, outputs=output)
|
| 32 |
|
| 33 |
if __name__ == "__main__":
|
| 34 |
-
|
| 35 |
|
| 36 |
os.environ['no_proxy'] = 'localhost, 127.0.0.1, ::1'
|
| 37 |
#demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import asyncio
|
| 3 |
from main import WebScrapingOrchestrator
|
| 4 |
+
import os
|
| 5 |
|
| 6 |
orchestrator = WebScrapingOrchestrator()
|
| 7 |
|
|
|
|
| 32 |
scrape_button.click(scrape, inputs=url_input, outputs=output)
|
| 33 |
|
| 34 |
if __name__ == "__main__":
|
| 35 |
+
|
| 36 |
|
| 37 |
os.environ['no_proxy'] = 'localhost, 127.0.0.1, ::1'
|
| 38 |
#demo.launch(server_name="0.0.0.0", server_port=7860)
|