Spaces:
Running
Running
Commit
·
7eb3060
1
Parent(s):
49a2c57
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 Level",
|
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."
|