ggsmith842 commited on
Commit
1118bb3
·
1 Parent(s): 719e072

update app.py

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +3 -1
app.py CHANGED
@@ -7,7 +7,7 @@ from smolagents import InferenceClientModel, CodeAgent, ToolCollection, MCPClien
7
 
8
  try:
9
  mcp_client = MCPClient(
10
- {"url": "https://ggsmith.hf.space/gradio_api/mcp/sse"} # This is the MCP Server we created in the previous section
11
  )
12
  tools = mcp_client.get_tools()
13
 
 
7
 
8
  try:
9
  mcp_client = MCPClient(
10
+ {"url": "https://ggsmith-mcp-sentiment.hf.space/gradio_api/mcp/sse", "transport":"sse"} # This is the MCP Server we created in the previous section
11
  )
12
  tools = mcp_client.get_tools()
13
 
requirements.txt CHANGED
@@ -1,2 +1,4 @@
1
  gradio[mcp]
2
- smolagents[mcp]
 
 
 
1
  gradio[mcp]
2
+ smolagents[mcp]
3
+ mcp
4
+ fastmcp