Spaces:
Sleeping
Sleeping
Commit
·
955877e
1
Parent(s):
e418fd6
Update app.py
Browse files
app.py
CHANGED
@@ -182,7 +182,7 @@ def make_prediction(image, taxonomic_decision, taxonomic_level):
|
|
182 |
else:
|
183 |
output_text = f"<h1 style='font-weight: bold;'>{predicted_class_name}</h1>"
|
184 |
|
185 |
-
# Add the top
|
186 |
output_text += "<h4 style='font-weight: bold; font-size: 1.2em;'>Top-5 predictions:</h4>"
|
187 |
|
188 |
top_indices = np.argsort(aggregated_predictions[0])[-5:][::-1] # Get top 5 predictions
|
|
|
182 |
else:
|
183 |
output_text = f"<h1 style='font-weight: bold;'>{predicted_class_name}</h1>"
|
184 |
|
185 |
+
# Add the top-5 predictions
|
186 |
output_text += "<h4 style='font-weight: bold; font-size: 1.2em;'>Top-5 predictions:</h4>"
|
187 |
|
188 |
top_indices = np.argsort(aggregated_predictions[0])[-5:][::-1] # Get top 5 predictions
|