Spaces:
Sleeping
Sleeping
| 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" | |
| ``` | |