Spaces:
Runtime error
Runtime error
|
Download README.md from Kleinpuki2/Gaurd: direct link, hf CLI and curl.
- Browser
- Download file 673 Bytes
-
https://huggingface.co/spaces/Kleinpuki2/Gaurd/resolve/main/README.md
- Command line
-
hf download hf://spaces/Kleinpuki2/Gaurd/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Kleinpuki2/Gaurd/resolve/main/README.md
673 Bytes
| title: Beleidigungs-KI API | |
| sdk: gradio | |
| app_file: app.py | |
| # Beleidigungs-KI API | |
| Gradio UI plus a key-protected JSON API. | |
| ## Space Secrets | |
| Set these under Space Settings -> Secrets: | |
| - `HF_TOKEN`: Hugging Face token with read access to your private model repository. | |
| - `API_KEY`: a new secret API key you create. Do not reuse a key pasted into chat or put it in this repo. | |
| Optional variable: | |
| - `MODEL_ID`: defaults to `zentridxdev2/beldijgne` | |
| ## API | |
| `POST /api/check` | |
| Header: `Authorization: Bearer YOUR_API_KEY` | |
| Body: `{"text":"sample text"}` | |
| Response: `{"label":"...","confidence":0.0,"flagged":true}` | |
| `GET /health` checks that the server process is running. | |