Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,8 +28,8 @@ def classify_potato_plant(img):
|
|
28 |
# Create the Gradio interface
|
29 |
interface = gr.Interface(
|
30 |
fn=classify_potato_plant,
|
31 |
-
inputs=gr.
|
32 |
-
outputs=[gr.
|
33 |
)
|
34 |
|
35 |
# Launch the app
|
|
|
28 |
# Create the Gradio interface
|
29 |
interface = gr.Interface(
|
30 |
fn=classify_potato_plant,
|
31 |
+
inputs=gr.Image(type="pil"),
|
32 |
+
outputs=[gr.Label(num_top_classes=1), gr.outputs.Textbox(label="Confidence Score")]
|
33 |
)
|
34 |
|
35 |
# Launch the app
|