Spaces:
Runtime error

Gaurd / README.md
Kleinpuki2's picture
Upload 3 files
651132f verified
|
Raw History Blame Contribute Delete
673 Bytes

A newer version of the Gradio SDK is available: 6.33.0

Upgrade
metadata
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.