File size: 1,125 Bytes
1e472de
 
 
 
 
 
 
 
 
 
2f124c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
title: CVE FactChecker
emoji: πŸ“Š
colorFrom: indigo
colorTo: indigo
sdk: docker
pinned: false
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

## API

- GET `/health` β†’ `{ status, uptime_sec }`
- GET `/fact-check?claim=...`
- POST `/fact-check` with JSON `{ "claim": "..." }`

Ingestion from Firebase runs in the background on startup. If you get `INITIALIZING`, retry once `ingestion_finished` becomes true.

## Environment variables (Settings β†’ Variables & secrets)

- Optional LLM keys:
	- `OPENROUTER_API_KEY` or `OPENAI_API_KEY`
- Vector DB persistence (recommended with Space Persistent Storage enabled):
	- `VECTOR_PERSIST_DIR=/data/vector_db`
- Faster cold start on small CPU instances:
	- `USE_DUMMY_EMBEDDINGS=true`
- Firebase overrides (only if you need to change defaults):
	- `FIREBASE_API_KEY`, `FIREBASE_PROJECT_ID`, `FIREBASE_AUTH_DOMAIN`, `FIREBASE_STORAGE_BUCKET`, `FIREBASE_MESSAGING_SENDER_ID`, `FIREBASE_APP_ID`

## Notes

- The server runs on port 7860 via gunicorn.
- Without an LLM key, the system uses a heuristic fallback for verdicts.