ggsmith842 commited on
Commit
2b5540c
·
1 Parent(s): 1465f70
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -3,15 +3,11 @@ import gradio as gr
3
 
4
  from smolagents import InferenceClientModel, CodeAgent, MCPClient
5
 
6
- token = os.getenv("HF_TOKEN")
7
- if token:
8
- print(f"Token set: {token[:3]}...")
9
-
10
  try:
11
  mcp_client = MCPClient(
12
  # mcp server created in previous section
13
- {"url": "http://localhost:7860/gradio_api/mcp/sse"}
14
- # {"url": "https://ggsmith-mcp-sentiment.hf.space/gradio_api/mcp/sse"}
15
  )
16
 
17
  tools = mcp_client.get_tools()
 
3
 
4
  from smolagents import InferenceClientModel, CodeAgent, MCPClient
5
 
 
 
 
 
6
  try:
7
  mcp_client = MCPClient(
8
  # mcp server created in previous section
9
+ # {"url": "http://localhost:7860/gradio_api/mcp/sse"}
10
+ {"url": "https://ggsmith-mcp-sentiment.hf.space/gradio_api/mcp/sse"}
11
  )
12
 
13
  tools = mcp_client.get_tools()