zotthytt12 commited on
Commit
da2310a
·
verified ·
1 Parent(s): 25fe6ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -29,11 +29,11 @@ def predict(img):
29
 
30
  iface = gr.Interface(
31
  fn=predict,
32
- inputs=gr.Image(type="filepath"),
33
  outputs=gr.Label(num_top_classes=3),
34
  title="Vegetable Classifier",
35
  description="Wgraj zdjęcie warzywa, a model powie co to jest."
36
  )
37
 
38
  if __name__ == "__main__":
39
- iface.launch()
 
29
 
30
  iface = gr.Interface(
31
  fn=predict,
32
+ inputs=gr.Image(type="pil"),
33
  outputs=gr.Label(num_top_classes=3),
34
  title="Vegetable Classifier",
35
  description="Wgraj zdjęcie warzywa, a model powie co to jest."
36
  )
37
 
38
  if __name__ == "__main__":
39
+ iface.launch(show_error=True)