saqib129 commited on
Commit
cf50368
1 Parent(s): 63b40d4

Updated app.py with Gradio

Browse files

Gradio.inputs was not working

Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -63,8 +63,11 @@ def predict(input_image: Image.Image):
63
 
64
  interface = gr.Interface(
65
  fn=predict,
66
- inputs=gr.inputs.Image(label="Input Image", type="pil"),
67
- outputs=[gr.outputs.Label(label="Class"), gr.outputs.Image(label="Face with Explainability", type="pil")]
 
 
 
68
  )
69
 
70
  if __name__ == "__main__":
 
63
 
64
  interface = gr.Interface(
65
  fn=predict,
66
+ inputs=gr.Image(label="Input Image", type="pil"),
67
+ outputs=[
68
+ gr.Label(label="Class"),
69
+ gr.Image(label="Face with Explainability", type="pil")
70
+ ]
71
  )
72
 
73
  if __name__ == "__main__":