nightfury commited on
Commit
1b43c3c
·
verified ·
1 Parent(s): ea64919

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -99,13 +99,13 @@ article = "<p style='text-align: center'>by Dushyantsinh Jadeja</p>"
99
  interface = gr.Interface(
100
  fn=predict,
101
  inputs=[
102
- gr.inputs.Image(label="Input Image", type="pil") #,
103
  #"text"
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(),
 
99
  interface = gr.Interface(
100
  fn=predict,
101
  inputs=[
102
+ gr.inputs.Image(label="Input Image", type="pil")#,
103
  #"text"
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(),