Spaces:
Running
Running
Download test_api.py from shriom23/MedFlow-OpenEnv: direct link, hf CLI and curl.
- Browser
- Download file 321 Bytes
-
https://huggingface.co/spaces/shriom23/MedFlow-OpenEnv/resolve/main/test_api.py
- Command line
-
hf download hf://spaces/shriom23/MedFlow-OpenEnv/test_api.py
-
curl -L -o test_api.py https://huggingface.co/spaces/shriom23/MedFlow-OpenEnv/resolve/main/test_api.py
321 Bytes
| #!/usr/bin/env python3 | |
| import requests | |
| import json | |
| print("Testing /reset endpoint...") | |
| resp = requests.post('http://localhost:7860/reset', json={'task_id': 'easy_small_clinic'}) | |
| print(f"Status: {resp.status_code}") | |
| data = resp.json() | |
| print(f"Response keys: {list(data.keys())}") | |
| print(json.dumps(data, indent=2)[:1000]) | |