Spaces:
Sleeping
Sleeping
Download scripts/testing/test_duplicate.py from Kurtgitgit/mission17-ai: direct link, hf CLI and curl.
- Browser
- Download file 460 Bytes
-
https://huggingface.co/spaces/Kurtgitgit/mission17-ai/resolve/main/scripts/testing/test_duplicate.py
- Command line
-
hf download hf://spaces/Kurtgitgit/mission17-ai/scripts/testing/test_duplicate.py
-
curl -L -o test_duplicate.py https://huggingface.co/spaces/Kurtgitgit/mission17-ai/resolve/main/scripts/testing/test_duplicate.py
460 Bytes
| import requests | |
| url = "http://localhost:5000/predict" | |
| file_path = "debug_bias_mitigation.jpg" | |
| print("--- First Upload ---") | |
| with open(file_path, "rb") as f: | |
| r = requests.post(url, files={"file": f}) | |
| print(f"Status: {r.status_code}") | |
| print(f"Response: {r.text}") | |
| print("\n--- Second Upload ---") | |
| with open(file_path, "rb") as f: | |
| r = requests.post(url, files={"file": f}) | |
| print(f"Status: {r.status_code}") | |
| print(f"Response: {r.text}") | |