Spaces:
Sleeping
Sleeping
update requirements
Browse files- README.md +24 -0
- requirements.txt +1 -1
README.md
CHANGED
|
@@ -8,3 +8,27 @@ pinned: false
|
|
| 8 |
---
|
| 9 |
|
| 10 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 11 |
+
|
| 12 |
+
## API
|
| 13 |
+
|
| 14 |
+
- GET `/health` → `{ status, uptime_sec }`
|
| 15 |
+
- GET `/fact-check?claim=...`
|
| 16 |
+
- POST `/fact-check` with JSON `{ "claim": "..." }`
|
| 17 |
+
|
| 18 |
+
Ingestion from Firebase runs in the background on startup. If you get `INITIALIZING`, retry once `ingestion_finished` becomes true.
|
| 19 |
+
|
| 20 |
+
## Environment variables (Settings → Variables & secrets)
|
| 21 |
+
|
| 22 |
+
- Optional LLM keys:
|
| 23 |
+
- `OPENROUTER_API_KEY` or `OPENAI_API_KEY`
|
| 24 |
+
- Vector DB persistence (recommended with Space Persistent Storage enabled):
|
| 25 |
+
- `VECTOR_PERSIST_DIR=/data/vector_db`
|
| 26 |
+
- Faster cold start on small CPU instances:
|
| 27 |
+
- `USE_DUMMY_EMBEDDINGS=true`
|
| 28 |
+
- Firebase overrides (only if you need to change defaults):
|
| 29 |
+
- `FIREBASE_API_KEY`, `FIREBASE_PROJECT_ID`, `FIREBASE_AUTH_DOMAIN`, `FIREBASE_STORAGE_BUCKET`, `FIREBASE_MESSAGING_SENDER_ID`, `FIREBASE_APP_ID`
|
| 30 |
+
|
| 31 |
+
## Notes
|
| 32 |
+
|
| 33 |
+
- The server runs on port 7860 via gunicorn.
|
| 34 |
+
- Without an LLM key, the system uses a heuristic fallback for verdicts.
|
requirements.txt
CHANGED
|
@@ -25,4 +25,4 @@ pandas
|
|
| 25 |
scikit-learn
|
| 26 |
|
| 27 |
# Production WSGI server
|
| 28 |
-
gunicorn
|
|
|
|
| 25 |
scikit-learn
|
| 26 |
|
| 27 |
# Production WSGI server
|
| 28 |
+
gunicorn
|