deepdetection / README.md
akagtag's picture
feat: update frontend to proxy requests to Hugging Face Space API and configure environment variables
0604cf4
---
title: GenAI DeepDetect
emoji: '๐Ÿ”'
colorFrom: gray
colorTo: indigo
sdk: docker
app_port: 7860
pinned: false
---
# GenAI-DeepDetect
Docker-based Hugging Face Space for multimodal deepfake detection.
This Space runs the FastAPI service from `src/api/main.py` and exposes:
- `GET /health`
- `POST /detect/image`
- `POST /detect/video`
## Frontend -> Hugging Face Space API
The Next.js frontend now sends requests to `/api/*` and proxies them to your Hugging Face Space.
1. Copy `frontend/.env.local.example` to `frontend/.env.local`.
2. Set `NEXT_PUBLIC_HF_SPACE_ID` (default: `akagtag/deepdetection`).
3. Optional: set `NEXT_PUBLIC_API_URL` to override and point to a local backend.