Spaces:
Sleeping
Sleeping
| import requests | |
| import json | |
| API_URL = "http://localhost:8000/gateway" | |
| payload = { | |
| "action": "analyze-multimodal", | |
| "payload": { | |
| "image_url": "https://upload.wikimedia.org/wikipedia/commons/8/89/Portrait_Placeholder.png", | |
| "text": "Patient présentant une éruption cutanée et de la fièvre depuis 2 jours." | |
| } | |
| } | |
| response = requests.post(API_URL, json=payload) | |
| print("Status:", response.status_code) | |
| try: | |
| print(json.dumps(response.json(), indent=2, ensure_ascii=False)) | |
| except Exception: | |
| print(response.text) | |