Spaces:
Runtime error
Runtime error
Rajiv Sukhnandan
commited on
Commit
·
b567db7
1
Parent(s):
50e1f06
again
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ from smolagents.mcp_client import MCPClient
|
|
| 8 |
|
| 9 |
try:
|
| 10 |
mcp_client = MCPClient(
|
| 11 |
-
{"url": "
|
| 12 |
)
|
| 13 |
tools = mcp_client.get_tools()
|
| 14 |
|
|
@@ -24,7 +24,6 @@ try:
|
|
| 24 |
)
|
| 25 |
|
| 26 |
demo.launch()
|
| 27 |
-
|
| 28 |
-
print(e)
|
| 29 |
finally:
|
| 30 |
mcp_client.close()
|
|
|
|
| 8 |
|
| 9 |
try:
|
| 10 |
mcp_client = MCPClient(
|
| 11 |
+
{"url": "http://localhost:7860/gradio_api/mcp/sse"}
|
| 12 |
)
|
| 13 |
tools = mcp_client.get_tools()
|
| 14 |
|
|
|
|
| 24 |
)
|
| 25 |
|
| 26 |
demo.launch()
|
| 27 |
+
|
|
|
|
| 28 |
finally:
|
| 29 |
mcp_client.close()
|