manasuma commited on
Commit
abe2b17
·
1 Parent(s): 2e29846

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -60,7 +60,7 @@ description = "A food classification model base on ViT"
60
  # Create Gradio interface
61
  demo = gr.Interface(
62
  fn=predict,
63
- inputs=gr.Image,
64
  outputs=[
65
  gr.Label(num_top_classes=5, label="Predictions"),
66
  gr.Number(label="Prediction time (s)"),
 
60
  # Create Gradio interface
61
  demo = gr.Interface(
62
  fn=predict,
63
+ inputs=gr.Image(type="pil"),
64
  outputs=[
65
  gr.Label(num_top_classes=5, label="Predictions"),
66
  gr.Number(label="Prediction time (s)"),