Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from smolagents import InferenceClientModel, CodeAgent
|
|
4 |
from smolagents.mcp_client import MCPClient
|
5 |
|
6 |
# Use a 'with' block to ensure proper disconnection
|
7 |
-
with MCPClient({"url": "https://abidlabs-mcp-tools.hf.space/gradio_api/mcp/sse"}) as mcp_client:
|
8 |
# Fetch the available tools from the remote MCP server
|
9 |
tools = mcp_client.get_tools()
|
10 |
|
|
|
4 |
from smolagents.mcp_client import MCPClient
|
5 |
|
6 |
# Use a 'with' block to ensure proper disconnection
|
7 |
+
with MCPClient({"url": "https://abidlabs-mcp-tools.hf.space/gradio_api/mcp/sse", "transport": "sse"}) as mcp_client:
|
8 |
# Fetch the available tools from the remote MCP server
|
9 |
tools = mcp_client.get_tools()
|
10 |
|