Update app.py
Browse files
app.py
CHANGED
|
@@ -24,11 +24,12 @@ def detect_deepfake(image):
|
|
| 24 |
# Gradio UI — upload only (no webcam)
|
| 25 |
iface = gr.Interface(
|
| 26 |
fn=detect_deepfake,
|
| 27 |
-
inputs=gr.Image(type="pil", label="Upload an Image"),
|
| 28 |
outputs="text",
|
| 29 |
title="Deepfake Confidence Score Detector",
|
| 30 |
description="Upload an image to check if it's a deepfake. Powered by Hugging Face Transformers."
|
| 31 |
)
|
| 32 |
|
|
|
|
| 33 |
if __name__ == "__main__":
|
| 34 |
iface.launch()
|
|
|
|
| 24 |
# Gradio UI — upload only (no webcam)
|
| 25 |
iface = gr.Interface(
|
| 26 |
fn=detect_deepfake,
|
| 27 |
+
inputs=gr.Image(type="pil", label="Upload an Image", sources=["upload"]),
|
| 28 |
outputs="text",
|
| 29 |
title="Deepfake Confidence Score Detector",
|
| 30 |
description="Upload an image to check if it's a deepfake. Powered by Hugging Face Transformers."
|
| 31 |
)
|
| 32 |
|
| 33 |
+
|
| 34 |
if __name__ == "__main__":
|
| 35 |
iface.launch()
|