Spaces:
Sleeping
Sleeping
Commit
·
3927ff5
1
Parent(s):
fb6d3d4
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ def make_prediction(image, taxonomic_level):
|
|
86 |
interface = gr.Interface(
|
87 |
fn=make_prediction, # Function to be called for predictions
|
88 |
inputs=[gr.Image(type="pil"), # Input type: Image (PIL format)
|
89 |
-
gr.Dropdown(choices=taxonomic_levels, label="Taxonomic
|
90 |
outputs="html", # Output type: HTML for formatting
|
91 |
title="Amazon Arboreal Species Classification",
|
92 |
description="Upload an image and select the taxonomic level to classify the species."
|
|
|
86 |
interface = gr.Interface(
|
87 |
fn=make_prediction, # Function to be called for predictions
|
88 |
inputs=[gr.Image(type="pil"), # Input type: Image (PIL format)
|
89 |
+
gr.Dropdown(choices=taxonomic_levels, label="Taxonomic level", value="species")], # Use 'value' instead of 'default'
|
90 |
outputs="html", # Output type: HTML for formatting
|
91 |
title="Amazon Arboreal Species Classification",
|
92 |
description="Upload an image and select the taxonomic level to classify the species."
|