Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import pipeline # Keep this if needed for `deepfakes_image_predict`
|
3 |
+
|
4 |
+
title = "EfficientNetV2 Deepfakes Image Detector"
|
5 |
+
description = "EfficientNetV2 Deepfakes Image Detector using frame-by-frame detection."
|
6 |
+
|
7 |
+
image_interface = gr.Interface(
|
8 |
+
pipeline.deepfakes_image_predict,
|
9 |
+
gr.Image(),
|
10 |
+
"text",
|
11 |
+
examples=["images/lady.jpg", "images/fake_image.jpg"],
|
12 |
+
cache_examples=False
|
13 |
+
)
|
14 |
+
|
15 |
+
if __name__ == "__main__":
|
16 |
+
image_interface.launch(share=False)
|