Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -154,10 +154,18 @@ def deepfakespredict(input_video):
|
|
| 154 |
title="EfficientNetV2 Deepfakes Video Detector"
|
| 155 |
description="This is a demo implementation of Deepfakes Video Detector by using EfficientNetV2 on frame-by-frame detection. To use it, simply upload your video, or click one of the examples to load them."
|
| 156 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
demo = gr.Interface(deepfakespredict,
|
| 158 |
inputs = ["video"],
|
| 159 |
outputs=["text","text", gr.outputs.Video(label="Detected face sequence")],
|
| 160 |
title=title,
|
| 161 |
-
description=description
|
|
|
|
| 162 |
)
|
| 163 |
demo.launch()
|
|
|
|
| 154 |
title="EfficientNetV2 Deepfakes Video Detector"
|
| 155 |
description="This is a demo implementation of Deepfakes Video Detector by using EfficientNetV2 on frame-by-frame detection. To use it, simply upload your video, or click one of the examples to load them."
|
| 156 |
|
| 157 |
+
examples = [
|
| 158 |
+
['real-1.mp4'],
|
| 159 |
+
['fake-1.mp4'],
|
| 160 |
+
['Video1-fake-1-ff.mp4'],
|
| 161 |
+
['Video6-real-1-ff.mp4']
|
| 162 |
+
]
|
| 163 |
+
|
| 164 |
demo = gr.Interface(deepfakespredict,
|
| 165 |
inputs = ["video"],
|
| 166 |
outputs=["text","text", gr.outputs.Video(label="Detected face sequence")],
|
| 167 |
title=title,
|
| 168 |
+
description=description,
|
| 169 |
+
examples=examples
|
| 170 |
)
|
| 171 |
demo.launch()
|