Spaces:
Runtime error
Runtime error
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,12 +1,37 @@
|
|
| 1 |
---
|
| 2 |
-
title: Kaeva
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: indigo
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
-
pinned:
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Kaeva Fact-Check
|
| 3 |
+
emoji: 🔍
|
| 4 |
colorFrom: indigo
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.1
|
| 8 |
app_file: app.py
|
| 9 |
+
pinned: true
|
| 10 |
+
license: mit
|
| 11 |
+
short_description: Two-stage AI fact-checking with DeBERTa + Gemini Search
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# Kaeva Fact-Check
|
| 15 |
+
|
| 16 |
+
Two-stage AI fact-checking pipeline:
|
| 17 |
+
|
| 18 |
+
1. **Stage 1 — DeBERTa Classifier**: Instant binary detection (real vs fake news)
|
| 19 |
+
2. **Stage 2 — Gemini + Google Search**: Live evidence verification with cited sources
|
| 20 |
+
|
| 21 |
+
## API Usage
|
| 22 |
+
|
| 23 |
+
```python
|
| 24 |
+
import requests
|
| 25 |
+
|
| 26 |
+
# Single claim
|
| 27 |
+
resp = requests.post("https://Vi0509-kaeva-factcheck.hf.space/api/check", json={
|
| 28 |
+
"claim": "The Earth is flat.",
|
| 29 |
+
"force_search": False
|
| 30 |
+
})
|
| 31 |
+
print(resp.json())
|
| 32 |
+
|
| 33 |
+
# Batch (up to 20)
|
| 34 |
+
resp = requests.post("https://Vi0509-kaeva-factcheck.hf.space/api/batch", json={
|
| 35 |
+
"claims": ["Claim 1", "Claim 2"]
|
| 36 |
+
})
|
| 37 |
+
```
|