Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -162,7 +162,7 @@ def make_prediction(image, taxonomic_decision, taxonomic_level):
|
|
162 |
top_prediction_index = np.argmax(aggregated_predictions)
|
163 |
top_prediction_confidence = aggregated_predictions[0][top_prediction_index]
|
164 |
|
165 |
-
if top_prediction_confidence >= 0.
|
166 |
break # Confidence threshold met, exit loop
|
167 |
|
168 |
current_level_index += 1 # Move to the next taxonomic level
|
@@ -218,7 +218,7 @@ interface = gr.Interface(
|
|
218 |
],
|
219 |
outputs="html", # Output type: HTML for formatting
|
220 |
title="Neotropical arboreal species classification",
|
221 |
-
description="Upload an image and select the taxonomic level
|
222 |
)
|
223 |
|
224 |
# Launch the Gradio interface with authentication for the specified users
|
|
|
162 |
top_prediction_index = np.argmax(aggregated_predictions)
|
163 |
top_prediction_confidence = aggregated_predictions[0][top_prediction_index]
|
164 |
|
165 |
+
if top_prediction_confidence >= 0.75:
|
166 |
break # Confidence threshold met, exit loop
|
167 |
|
168 |
current_level_index += 1 # Move to the next taxonomic level
|
|
|
218 |
],
|
219 |
outputs="html", # Output type: HTML for formatting
|
220 |
title="Neotropical arboreal species classification",
|
221 |
+
description="Upload an image and our AI will classify the animal. You can select the desired taxonomic level for the prediction, or leave the decision to our model that will output the one with the higher confidence."
|
222 |
)
|
223 |
|
224 |
# Launch the Gradio interface with authentication for the specified users
|