busebaser commited on
Commit
4a7d132
·
1 Parent(s): a37bcd0

Fix: Updated Gradio syntax for inputs and outputs

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,8 +17,8 @@ def predict(image):
17
  # Create the Gradio web interface
18
  interface = gr.Interface(
19
  fn=predict,
20
- inputs=gr.inputs.Image(type="pil"),
21
- outputs="text",
22
  title="Cat vs Dog Classifier",
23
  description="Upload an image of a cat or dog and let the model classify it!"
24
  )
 
17
  # Create the Gradio web interface
18
  interface = gr.Interface(
19
  fn=predict,
20
+ inputs=gr.Image(type="pil"),
21
+ outputs=gr.Textbox(),
22
  title="Cat vs Dog Classifier",
23
  description="Upload an image of a cat or dog and let the model classify it!"
24
  )