Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -108,7 +108,7 @@ def make_prediction(image, taxonomic_decision, taxonomic_level):
|
|
108 |
top_prediction_index = np.argmax(aggregated_predictions)
|
109 |
top_prediction_confidence = aggregated_predictions[0][top_prediction_index]
|
110 |
|
111 |
-
if top_prediction_confidence >= 0.
|
112 |
break # Confidence threshold met, exit loop
|
113 |
|
114 |
current_level_index += 1 # Move to the next taxonomic level
|
|
|
108 |
top_prediction_index = np.argmax(aggregated_predictions)
|
109 |
top_prediction_confidence = aggregated_predictions[0][top_prediction_index]
|
110 |
|
111 |
+
if top_prediction_confidence >= 0.75:
|
112 |
break # Confidence threshold met, exit loop
|
113 |
|
114 |
current_level_index += 1 # Move to the next taxonomic level
|