Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ def predict(input_image:Image.Image, true_label:str):
|
|
93 |
return confidences, true_label, face_with_mask
|
94 |
|
95 |
title = "Deepfake Image Detection"
|
96 |
-
description = "~ AI - ML implementation for fake and real image detection
|
97 |
article = "<p style='text-align: center'>...</p>"
|
98 |
|
99 |
interface = gr.Interface(
|
@@ -104,8 +104,8 @@ interface = gr.Interface(
|
|
104 |
],
|
105 |
outputs=[
|
106 |
gr.outputs.Label(label="Prediction Model - % of Fake or Real image detection"),
|
107 |
-
|
108 |
-
gr.outputs.Image(label="Face with Explainability"
|
109 |
#ValueError: Invalid value for parameter `type`: auto. Please choose from one of: ['numpy', 'pil', 'filepath']
|
110 |
],
|
111 |
theme = gr.themes.Soft(),
|
|
|
93 |
return confidences, true_label, face_with_mask
|
94 |
|
95 |
title = "Deepfake Image Detection"
|
96 |
+
description = "~ AI - ML implementation for fake and real image detection..."
|
97 |
article = "<p style='text-align: center'>...</p>"
|
98 |
|
99 |
interface = gr.Interface(
|
|
|
104 |
],
|
105 |
outputs=[
|
106 |
gr.outputs.Label(label="Prediction Model - % of Fake or Real image detection"),
|
107 |
+
"text",
|
108 |
+
gr.outputs.Image(label="Face with Explainability")
|
109 |
#ValueError: Invalid value for parameter `type`: auto. Please choose from one of: ['numpy', 'pil', 'filepath']
|
110 |
],
|
111 |
theme = gr.themes.Soft(),
|