ooki0626 commited on
Commit
ade2041
Β·
verified Β·
1 Parent(s): 2ad8303

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -15
README.md CHANGED
@@ -1,6 +1,5 @@
1
-
2
  ---
3
- title: FakeSpotter Heuristic Demo
4
  emoji: πŸ”
5
  colorFrom: blue
6
  colorTo: pink
@@ -10,20 +9,28 @@ app_file: app.py
10
  pinned: false
11
  ---
12
 
13
- # FakeSpotter (Heuristic, No-API, Free)
 
 
 
 
 
14
 
15
- **Goal:** Upload an image β†’ return a probability and reasons for **AI vs Real** using simple, free heuristics.
 
 
 
16
 
17
- ## What it does
18
- - Read EXIF and look for camera fields (Make/Model) or generator keywords (e.g., Stable Diffusion, Midjourney).
19
- - Run **ELA (Error Level Analysis)** by recompressing at JPEG 95 and computing mean/std of differences.
20
- - Combine signals into a **0..1 AI-likelihood** score with a friendly label (Likely AI / Uncertain / Likely Real).
21
 
22
- ## How to deploy (Hugging Face Spaces)
23
- 1. Create a new **Space** (SDK: Gradio, Template: Blank, Public).
24
- 2. Upload `app.py`, `requirements.txt`, and this `README.md` to the root directory.
25
- 3. Wait for the build β†’ open **App** tab.
26
 
27
- ## Disclaimer
28
- This is a **classroom demo**. Heuristics can be fooled by re-encoding, screenshots, or camera apps that strip EXIF.
29
- Do **not** rely on it for legal/forensic decisions.
 
 
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.