csabhay commited on
Commit
d4be359
1 Parent(s): b19a52e

Update app.py

Browse files

Fixed issue AttributeError: module 'gradio' has no attribute 'inputs'

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -79,10 +79,10 @@ def predict(input_image:Image.Image):
79
  interface = gr.Interface(
80
  fn=predict,
81
  inputs=[
82
- gr.inputs.Image(label="Input Image", type="pil")
83
  ],
84
  outputs=[
85
- gr.outputs.Label(label="Class"),
86
- gr.outputs.Image(label="Face with Explainability", type="pil")
87
  ],
88
  ).launch(share=True)
 
79
  interface = gr.Interface(
80
  fn=predict,
81
  inputs=[
82
+ gr.Image(label="Input Image", type="pil")
83
  ],
84
  outputs=[
85
+ gr.Label(label="Class"),
86
+ gr.Image(label="Face with Explainability", type="pil")
87
  ],
88
  ).launch(share=True)