nightfury commited on
Commit
54472ab
1 Parent(s): c84823a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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'>by</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="Class"),
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,