Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ def predict(image):
|
|
18 |
return predictions.numpy().tolist() # Adjust output processing as needed
|
19 |
|
20 |
# Set up the Gradio interface
|
21 |
-
image_input = gr.Image(
|
22 |
-
label_output = gr.Label()
|
23 |
|
24 |
interface = gr.Interface(fn=predict, inputs=image_input, outputs=label_output)
|
25 |
interface.launch()
|
|
|
18 |
return predictions.numpy().tolist() # Adjust output processing as needed
|
19 |
|
20 |
# Set up the Gradio interface
|
21 |
+
image_input = gr.inputs.Image(type="pil")
|
22 |
+
label_output = gr.outputs.Label(num_top_classes=3)
|
23 |
|
24 |
interface = gr.Interface(fn=predict, inputs=image_input, outputs=label_output)
|
25 |
interface.launch()
|