AMontiB commited on
Commit
ebb6a24
Β·
1 Parent(s): 0301159
Files changed (2) hide show
  1. README.md +2 -2
  2. app.py +9 -4
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Deepfake Detection Library
3
  emoji: πŸ”
4
  colorFrom: red
5
  colorTo: yellow
@@ -10,7 +10,7 @@ pinned: false
10
  license: mit
11
  ---
12
 
13
- # Deepfake Detection Library
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 Library")
103
  gr.Markdown("""
104
- This library 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
 
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():