andrewzamp commited on
Commit
32b40a7
·
verified ·
1 Parent(s): dca3a9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.80:
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 (optional) to classify the species."
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