shourya commited on
Commit
af033ce
·
1 Parent(s): 36a6496
Files changed (1) hide show
  1. app.py +2 -2
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",} # This is the MCP Client we created in the previous section
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()