Spaces:
Build error
Build error
Update app.py
Browse files
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)"),
|