emmuzoo commited on
Commit
405a030
·
1 Parent(s): 66481d6

correct url

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ from smolagents import InferenceClientModel, CodeAgent, MCPClient
7
  try:
8
  mcp_client = MCPClient(
9
  {"url": "https://emmuzoo-mcp-sentiment.hf.space/gradio_api/mcp/sse", "transport": "sse",},
10
- structured_output=False
11
  #{"url": "https://abidlabs-mcp-tool-http.hf.space/gradio_api/mcp/sse", "transport": "sse",}
12
  )
13
  tools = mcp_client.get_tools()
@@ -17,7 +17,7 @@ try:
17
 
18
  demo = gr.ChatInterface(
19
  fn=lambda message, history: str(agent.run(message)),
20
- type="messages",
21
  examples=["Analyze the sentiment of the following text 'This is awesome'"],
22
  title="Agent with MCP Tools",
23
  description="This is a simple agent that uses MCP tools to answer questions.",
 
7
  try:
8
  mcp_client = MCPClient(
9
  {"url": "https://emmuzoo-mcp-sentiment.hf.space/gradio_api/mcp/sse", "transport": "sse",},
10
+ #structured_output=False
11
  #{"url": "https://abidlabs-mcp-tool-http.hf.space/gradio_api/mcp/sse", "transport": "sse",}
12
  )
13
  tools = mcp_client.get_tools()
 
17
 
18
  demo = gr.ChatInterface(
19
  fn=lambda message, history: str(agent.run(message)),
20
+ #type="messages",
21
  examples=["Analyze the sentiment of the following text 'This is awesome'"],
22
  title="Agent with MCP Tools",
23
  description="This is a simple agent that uses MCP tools to answer questions.",