Spaces:
Sleeping
Sleeping
Commit
·
269dc01
1
Parent(s):
f79a2b4
fix: server2
Browse files
server.py
CHANGED
|
@@ -31,5 +31,8 @@ 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
scrape_button.click(scrape, inputs=url_input, outputs=output)
|
| 32 |
|
| 33 |
if __name__ == "__main__":
|
| 34 |
+
import os
|
| 35 |
+
|
| 36 |
+
os.environ['no_proxy'] = 'localhost, 127.0.0.1, ::1'
|
| 37 |
+
#demo.launch(server_name="0.0.0.0", server_port=7860)
|
| 38 |
+
demo.launch(mcp_server=True, share=True)
|