File size: 517 Bytes
36f9974
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

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"
```