Spaces:
Runtime error
Runtime error
shourya commited on
Commit ·
af033ce
1
Parent(s): 36a6496
test
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import os
|
|
| 4 |
from mcp import StdioServerParameters
|
| 5 |
from smolagents import InferenceClientModel, CodeAgent, ToolCollection, MCPClient
|
| 6 |
mcp_client = MCPClient(
|
| 7 |
-
{"url": "https://abidlabs-mcp-tool-http.hf.space/gradio_api/mcp/sse", "transport": "sse",}
|
| 8 |
)
|
| 9 |
tools = mcp_client.get_tools()
|
| 10 |
|
|
@@ -19,4 +19,4 @@ demo = gr.ChatInterface(
|
|
| 19 |
description="This is a simple agent that uses MCP tools to answer questions."
|
| 20 |
)
|
| 21 |
|
| 22 |
-
demo.launch()
|
|
|
|
| 4 |
from mcp import StdioServerParameters
|
| 5 |
from smolagents import InferenceClientModel, CodeAgent, ToolCollection, MCPClient
|
| 6 |
mcp_client = MCPClient(
|
| 7 |
+
{"url": "https://abidlabs-mcp-tool-http.hf.space/gradio_api/mcp/sse", "transport": "sse",}
|
| 8 |
)
|
| 9 |
tools = mcp_client.get_tools()
|
| 10 |
|
|
|
|
| 19 |
description="This is a simple agent that uses MCP tools to answer questions."
|
| 20 |
)
|
| 21 |
|
| 22 |
+
demo.launch()
|