Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
-
|
| 2 |
---
|
| 3 |
-
title: FakeSpotter
|
| 4 |
emoji: π
|
| 5 |
colorFrom: blue
|
| 6 |
colorTo: pink
|
|
@@ -10,20 +9,28 @@ app_file: app.py
|
|
| 10 |
pinned: false
|
| 11 |
---
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
-
**
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: FakeSpotter β Image Deepfake Detector
|
| 3 |
emoji: π
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: pink
|
|
|
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
+
## FakeSpotter β Image Deepfake Detector (Images Only)
|
| 13 |
+
|
| 14 |
+
**What it does**
|
| 15 |
+
- Detect faces (MTCNN). If faces are found, classify **each face**; otherwise classify the **whole image**.
|
| 16 |
+
- Uses a vision classifier fine-tuned for deepfake detection from Hugging Face.
|
| 17 |
+
- **No EXIF heuristics** β purely image-based.
|
| 18 |
|
| 19 |
+
**Model**
|
| 20 |
+
- Default: `prithivMLmods/Deep-Fake-Detector-v2-Model`
|
| 21 |
+
You can swap to another HF model by editing `MODEL_ID` in `app.py`.
|
| 22 |
+
(Make sure the license allows your intended use.)
|
| 23 |
|
| 24 |
+
**How to run on Spaces**
|
| 25 |
+
1. Create a Space β SDK: **Gradio**, Template: **Blank**, Public.
|
| 26 |
+
2. Upload `app.py`, `requirements.txt`, `README.md` to the **repo root**.
|
| 27 |
+
3. Wait for βRunning π’β and open the **App** tab.
|
| 28 |
|
| 29 |
+
**Notes**
|
| 30 |
+
- This is a **classroom demo**, not a forensic tool.
|
| 31 |
+
- For better robustness: constrain input size (done), and aggregate per-face scores (done).
|
| 32 |
+
- For videos, extend by sampling frames and aggregating scores.
|
| 33 |
|
| 34 |
+
**License**
|
| 35 |
+
- Your code: choose MIT/Apache-2.0 for simplicity.
|
| 36 |
+
- The modelβs own license is defined on its HF model card β verify before production use.
|