Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -92,10 +92,11 @@ def classify_and_get_nutrition(image):
|
|
92 |
# Antarmuka Gradio
|
93 |
iface = gr.Interface(
|
94 |
fn=classify_and_get_nutrition,
|
95 |
-
inputs=gr.
|
96 |
-
outputs=gr.
|
97 |
title="Fruits and Vegetables Classifier",
|
98 |
description="Upload an image of a fruit or vegetable to classify and get its nutritional information."
|
99 |
)
|
100 |
|
|
|
101 |
iface.launch()
|
|
|
92 |
# Antarmuka Gradio
|
93 |
iface = gr.Interface(
|
94 |
fn=classify_and_get_nutrition,
|
95 |
+
inputs=gr.Image(type="pil"),
|
96 |
+
outputs=gr.JSON(),
|
97 |
title="Fruits and Vegetables Classifier",
|
98 |
description="Upload an image of a fruit or vegetable to classify and get its nutritional information."
|
99 |
)
|
100 |
|
101 |
+
|
102 |
iface.launch()
|