mrvero commited on
Commit
941812b
·
verified ·
1 Parent(s): 7004f02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ def predict_image(image):
45
  # Create a Gradio interface
46
  interface = gr.Interface(
47
  fn=predict_image,
48
- inputs=gr.inputs.Image(type="pil"),
49
  outputs="text",
50
  title="Image Classification",
51
  description="Upload an image to classify it using the pre-trained model."
 
45
  # Create a Gradio interface
46
  interface = gr.Interface(
47
  fn=predict_image,
48
+ inputs=gr.Image(type="pil"), # Updated to gr.Image
49
  outputs="text",
50
  title="Image Classification",
51
  description="Upload an image to classify it using the pre-trained model."