Spaces:
Runtime error
Runtime error
Eddyhzd
commited on
Commit
·
3b313c8
1
Parent(s):
6284dca
test
Browse files
app.py
CHANGED
|
@@ -14,6 +14,7 @@ def call_mcp(payload: dict):
|
|
| 14 |
"""Appel simple au serveur MCP Gradio"""
|
| 15 |
headers = {"Content-Type": "application/json"}
|
| 16 |
response = requests.post(MCP_URL, data=json.dumps(payload), headers=headers)
|
|
|
|
| 17 |
response.raise_for_status()
|
| 18 |
return response.json()
|
| 19 |
|
|
|
|
| 14 |
"""Appel simple au serveur MCP Gradio"""
|
| 15 |
headers = {"Content-Type": "application/json"}
|
| 16 |
response = requests.post(MCP_URL, data=json.dumps(payload), headers=headers)
|
| 17 |
+
print(response.json())
|
| 18 |
response.raise_for_status()
|
| 19 |
return response.json()
|
| 20 |
|