cispa_citizen_defake / curl_example.md
home
add curl examples
36f9974

A newer version of the Gradio SDK is available: 6.2.0

Upgrade

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"