Edward110 commited on
Commit
6429486
·
1 Parent(s): e67530a
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def predict(image):
14
  # Create the Gradio interface
15
  demo = gr.Interface(
16
  fn=predict,
17
- inputs=gr.Image(type="file"),
18
  outputs="text",
19
  title="Image validation",
20
  description="Upload an image and get the model's text prediction."
 
14
  # Create the Gradio interface
15
  demo = gr.Interface(
16
  fn=predict,
17
+ inputs=gr.Image(type="pil"),
18
  outputs="text",
19
  title="Image validation",
20
  description="Upload an image and get the model's text prediction."