AndreiTorshin commited on
Commit
2688dab
·
verified ·
1 Parent(s): 8796331

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,12 +2,13 @@ import gradio as gr
2
  from smolagents import CodeAgent
3
  from smolagents.mcp_client import MCPClient
4
  from smolagents import LiteLLMModel
 
5
 
6
 
7
  try:
8
  mcp_client = MCPClient(
9
  ## Try this working example on the hub:
10
- {"url": "http://127.0.0.1:8000/sse"}
11
 
12
  )
13
  tools = mcp_client.get_tools()
 
2
  from smolagents import CodeAgent
3
  from smolagents.mcp_client import MCPClient
4
  from smolagents import LiteLLMModel
5
+ from mcp.client.stdio import StdioServerParameters
6
 
7
 
8
  try:
9
  mcp_client = MCPClient(
10
  ## Try this working example on the hub:
11
+ {"url": "http://localhost:7860/gradio_api/mcp/sse"}
12
 
13
  )
14
  tools = mcp_client.get_tools()