Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,6 @@ def deepfakespredict(select_model, input_img ):
|
|
73 |
title="EfficientNetV2 Deepfakes Image Detector"
|
74 |
description="This is a demo implementation of EfficientNetV2 Deepfakes Image Detector. To use it, simply upload your image, or click one of the examples to load them."
|
75 |
examples = [
|
76 |
-
|
77 |
['deepfakes-test-images/Fake-1.jpg'],
|
78 |
['deepfakes-test-images/Fake-2.jpg'],
|
79 |
['deepfakes-test-images/Fake-3.jpg'],
|
@@ -85,13 +84,11 @@ examples = [
|
|
85 |
['deepfakes-test-images/Real-3.jpg'],
|
86 |
['deepfakes-test-images/Real-4.jpg'],
|
87 |
['deepfakes-test-images/Real-5.jpg']
|
88 |
-
|
89 |
]
|
90 |
|
91 |
gr.Interface(deepfakespredict,
|
92 |
inputs = [gr.inputs.Radio(["EfficientNetV2-B0", "EfficientNetV2-S"], label = "Select model:"), "image"],
|
93 |
outputs=["text", gr.outputs.Image(type="pil", label="Detected face"), gr.outputs.Label(num_top_classes=None, type="auto", label="Confidence")],
|
94 |
title=title,
|
95 |
-
description=description
|
96 |
-
examples=examples
|
97 |
).launch()
|
|
|
73 |
title="EfficientNetV2 Deepfakes Image Detector"
|
74 |
description="This is a demo implementation of EfficientNetV2 Deepfakes Image Detector. To use it, simply upload your image, or click one of the examples to load them."
|
75 |
examples = [
|
|
|
76 |
['deepfakes-test-images/Fake-1.jpg'],
|
77 |
['deepfakes-test-images/Fake-2.jpg'],
|
78 |
['deepfakes-test-images/Fake-3.jpg'],
|
|
|
84 |
['deepfakes-test-images/Real-3.jpg'],
|
85 |
['deepfakes-test-images/Real-4.jpg'],
|
86 |
['deepfakes-test-images/Real-5.jpg']
|
|
|
87 |
]
|
88 |
|
89 |
gr.Interface(deepfakespredict,
|
90 |
inputs = [gr.inputs.Radio(["EfficientNetV2-B0", "EfficientNetV2-S"], label = "Select model:"), "image"],
|
91 |
outputs=["text", gr.outputs.Image(type="pil", label="Detected face"), gr.outputs.Label(num_top_classes=None, type="auto", label="Confidence")],
|
92 |
title=title,
|
93 |
+
description=description
|
|
|
94 |
).launch()
|