Spaces:
Running
Running
AMontiB
commited on
Commit
Β·
ebb6a24
1
Parent(s):
0301159
update
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title: Deepfake Detection
|
| 3 |
emoji: π
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: yellow
|
|
@@ -10,7 +10,7 @@ pinned: false
|
|
| 10 |
license: mit
|
| 11 |
---
|
| 12 |
|
| 13 |
-
# Deepfake Detection
|
| 14 |
|
| 15 |
This Space provides a unified interface to test multiple state-of-the-art deepfake detection models on your images.
|
| 16 |
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Deepfake Detection Space
|
| 3 |
emoji: π
|
| 4 |
colorFrom: red
|
| 5 |
colorTo: yellow
|
|
|
|
| 10 |
license: mit
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# Deepfake Detection Space
|
| 14 |
|
| 15 |
This Space provides a unified interface to test multiple state-of-the-art deepfake detection models on your images.
|
| 16 |
|
app.py
CHANGED
|
@@ -75,7 +75,7 @@ def predict(image_path, detector_name):
|
|
| 75 |
|
| 76 |
output = {
|
| 77 |
"Prediction": prediction,
|
| 78 |
-
"Confidence": f"{confidence:.4f}",
|
| 79 |
"Elapsed Time": f"{elapsed_time:.3f}s"
|
| 80 |
}
|
| 81 |
return json.dumps(output, indent=2)
|
|
@@ -96,16 +96,21 @@ def predict(image_path, detector_name):
|
|
| 96 |
|
| 97 |
# Create Gradio Interface
|
| 98 |
# Use theme only if gradio version supports it
|
| 99 |
-
demo = gr.Blocks(title="Deepfake Detection", theme=gr.themes.Soft())
|
| 100 |
|
| 101 |
with demo:
|
| 102 |
-
gr.Markdown("# π Deepfake Detection
|
| 103 |
gr.Markdown("""
|
| 104 |
-
This
|
| 105 |
|
| 106 |
### Training & Performance
|
| 107 |
All methods have been trained using the **[DeepShield dataset](https://zenodo.org/records/15648378)**, which includes images generated with **Stable Diffusion XL** and **StyleGAN 2**.
|
| 108 |
You can expect performance comparable to the results shown in [Dell'Anna et al. (2025)](https://arxiv.org/pdf/2504.20658).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
""")
|
| 110 |
|
| 111 |
with gr.Row():
|
|
|
|
| 75 |
|
| 76 |
output = {
|
| 77 |
"Prediction": prediction,
|
| 78 |
+
"Confidence Fake": f"{confidence:.4f}",
|
| 79 |
"Elapsed Time": f"{elapsed_time:.3f}s"
|
| 80 |
}
|
| 81 |
return json.dumps(output, indent=2)
|
|
|
|
| 96 |
|
| 97 |
# Create Gradio Interface
|
| 98 |
# Use theme only if gradio version supports it
|
| 99 |
+
demo = gr.Blocks(title="Deepfake Detection Space", theme=gr.themes.Soft())
|
| 100 |
|
| 101 |
with demo:
|
| 102 |
+
gr.Markdown("# π Deepfake Detection Space")
|
| 103 |
gr.Markdown("""
|
| 104 |
+
This space collects a series of state-of-the-art methods for deepfake detection, allowing for free and unlimited use.
|
| 105 |
|
| 106 |
### Training & Performance
|
| 107 |
All methods have been trained using the **[DeepShield dataset](https://zenodo.org/records/15648378)**, which includes images generated with **Stable Diffusion XL** and **StyleGAN 2**.
|
| 108 |
You can expect performance comparable to the results shown in [Dell'Anna et al. (2025)](https://arxiv.org/pdf/2504.20658).
|
| 109 |
+
|
| 110 |
+
### Understanding the Results
|
| 111 |
+
* **Prediction**: Tells if an image is **Real** or **Fake**.
|
| 112 |
+
* **Confidence Fake**: The confidence with which the model determines if the image is fake.
|
| 113 |
+
* **Elapsed Time**: The time the model needed to make the prediction (excluding preprocessing or model building).
|
| 114 |
""")
|
| 115 |
|
| 116 |
with gr.Row():
|