Spaces:
Sleeping
Sleeping
|
Download curl_example.md from Jony7chu/cispa_citizen_defake: direct link, hf CLI and curl.
- Browser
- Download file 517 Bytes
-
https://huggingface.co/spaces/Jony7chu/cispa_citizen_defake/resolve/main/curl_example.md
- Command line
-
hf download hf://spaces/Jony7chu/cispa_citizen_defake/curl_example.md
-
curl -L -o curl_example.md https://huggingface.co/spaces/Jony7chu/cispa_citizen_defake/resolve/main/curl_example.md
517 Bytes
| API Usage (based on CURL) | |
| ``` | |
| EVENT_ID=$(curl -s -X POST https://jony7chu-cispa-citizen-defake.hf.space/gradio_api/call/detect_api \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "data": [ | |
| {"path": "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png", "meta": {"_type": "gradio.FileData"}}, | |
| "API_KEY" | |
| ] | |
| }' | grep -o '"event_id":"[^"]*"' | cut -d'"' -f4) && \ | |
| curl -N "https://jony7chu-cispa-citizen-defake.hf.space/gradio_api/call/detect_api/$EVENT_ID" | |
| ``` | |