nightfury commited on
Commit
bc231a4
1 Parent(s): d56c43b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 technics."
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
- #"text",
108
- gr.outputs.Image(label="Face with Explainability", 'filepath')
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(),