Rajiv Sukhnandan commited on
Commit
b567db7
·
1 Parent(s): 50e1f06
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -8,7 +8,7 @@ from smolagents.mcp_client import MCPClient
8
 
9
  try:
10
  mcp_client = MCPClient(
11
- {"url": "https://huggingface.co/spaces/Raj718/mcp-client"}
12
  )
13
  tools = mcp_client.get_tools()
14
 
@@ -24,7 +24,6 @@ try:
24
  )
25
 
26
  demo.launch()
27
- except Exception as e:
28
- print(e)
29
  finally:
30
  mcp_client.close()
 
8
 
9
  try:
10
  mcp_client = MCPClient(
11
+ {"url": "http://localhost:7860/gradio_api/mcp/sse"}
12
  )
13
  tools = mcp_client.get_tools()
14
 
 
24
  )
25
 
26
  demo.launch()
27
+
 
28
  finally:
29
  mcp_client.close()