Spaces:
Sleeping
Sleeping
update url
Browse files
app.py
CHANGED
|
@@ -8,8 +8,12 @@ from smolagents.mcp_client import MCPClient
|
|
| 8 |
try:
|
| 9 |
mcp_client = MCPClient(
|
| 10 |
## Try this working example on the hub:
|
| 11 |
-
{
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
)
|
| 14 |
tools = mcp_client.get_tools()
|
| 15 |
|
|
|
|
| 8 |
try:
|
| 9 |
mcp_client = MCPClient(
|
| 10 |
## Try this working example on the hub:
|
| 11 |
+
{
|
| 12 |
+
"transport": "sse",
|
| 13 |
+
"url": "https://vankhieu-mcp-sentiment.hf.space/gradio_api/mcp/sse",
|
| 14 |
+
#"url": "http://localhost:7860/gradio_api/mcp/sse"
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
)
|
| 18 |
tools = mcp_client.get_tools()
|
| 19 |
|