Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -91,19 +91,19 @@ def predict(input_image:Image.Image, true_label:str):
|
|
91 |
}
|
92 |
return confidences, true_label, face_with_mask
|
93 |
|
94 |
-
title = "Deepfake Detection"
|
95 |
-
description = ""
|
96 |
-
article = "<p style='text-align: center'
|
97 |
|
98 |
interface = gr.Interface(
|
99 |
fn=predict,
|
100 |
inputs=[
|
101 |
-
gr.inputs.Image(label="Input Image", type="pil")
|
102 |
-
"text"
|
103 |
],
|
104 |
outputs=[
|
105 |
-
gr.outputs.Label(label="
|
106 |
-
"text",
|
107 |
gr.outputs.Image(label="Face with Explainability")
|
108 |
],
|
109 |
title = title,
|
|
|
91 |
}
|
92 |
return confidences, true_label, face_with_mask
|
93 |
|
94 |
+
title = "Deepfake Image Detection"
|
95 |
+
description = "~ AI - ML implementation for fake and real image detection technics."
|
96 |
+
article = "<p style='text-align: center'></p>"
|
97 |
|
98 |
interface = gr.Interface(
|
99 |
fn=predict,
|
100 |
inputs=[
|
101 |
+
gr.inputs.Image(label="Input Image", type="pil") #,
|
102 |
+
#"text"
|
103 |
],
|
104 |
outputs=[
|
105 |
+
gr.outputs.Label(label="Prediction on % of Fake/Real detection :") #,
|
106 |
+
#"text",
|
107 |
gr.outputs.Image(label="Face with Explainability")
|
108 |
],
|
109 |
title = title,
|