Spaces:
Runtime error
Runtime error
Eddyhzd
commited on
Commit
·
abcb943
1
Parent(s):
674e815
test
Browse files
app.py
CHANGED
|
@@ -80,7 +80,7 @@ client = MCPClientWrapper()
|
|
| 80 |
with gr.Blocks() as demo:
|
| 81 |
|
| 82 |
client.connect("mcp_server.py")
|
| 83 |
-
|
| 84 |
|
| 85 |
chatbot_ui = gr.Chatbot(label="ChatBot")
|
| 86 |
msg = gr.Textbox(placeholder="Écrivez un message...")
|
|
|
|
| 80 |
with gr.Blocks() as demo:
|
| 81 |
|
| 82 |
client.connect("mcp_server.py")
|
| 83 |
+
print(f"Connected to MCP server. Available tools: {', '.join([tool['name'] for tool in client.tools])}")
|
| 84 |
|
| 85 |
chatbot_ui = gr.Chatbot(label="ChatBot")
|
| 86 |
msg = gr.Textbox(placeholder="Écrivez un message...")
|