Spaces:
Running
Running
Commit
·
098b334
1
Parent(s):
96a0181
Update app.py
Browse files
app.py
CHANGED
@@ -98,7 +98,7 @@ def make_prediction(image, taxonomic_decision, taxonomic_level):
|
|
98 |
output_text = f"<h1 style='font-weight: bold;'>{predicted_class_name}</h1>"
|
99 |
|
100 |
# Add the top 5 predictions
|
101 |
-
output_text += "<h4 style='font-weight: bold; font-size: 1.2em;'>Top
|
102 |
|
103 |
top_indices = np.argsort(aggregated_predictions[0])[-5:][::-1] # Get top 5 predictions
|
104 |
|
|
|
98 |
output_text = f"<h1 style='font-weight: bold;'>{predicted_class_name}</h1>"
|
99 |
|
100 |
# Add the top 5 predictions
|
101 |
+
output_text += "<h4 style='font-weight: bold; font-size: 1.2em;'>Top-5 predictions:</h4>"
|
102 |
|
103 |
top_indices = np.argsort(aggregated_predictions[0])[-5:][::-1] # Get top 5 predictions
|
104 |
|