Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -351,7 +351,7 @@ async def predict(image):
|
|
351 |
if top1_prob >= 0.5:
|
352 |
breed = topk_breeds[0]
|
353 |
choices.append(f"Dog {i+1}: {breed}")
|
354 |
-
explanations.append(f"Dog {i+1}: **{breed}**
|
355 |
elif top1_prob >= 0.2:
|
356 |
explanations.append(f"Dog {i+1}: Top 3 possible breeds:\n"
|
357 |
f"1. **{topk_breeds[0]}** ({topk_probs_percent[0]} confidence)\n"
|
|
|
351 |
if top1_prob >= 0.5:
|
352 |
breed = topk_breeds[0]
|
353 |
choices.append(f"Dog {i+1}: {breed}")
|
354 |
+
explanations.append(f"Dog {i+1}: **{breed}**")
|
355 |
elif top1_prob >= 0.2:
|
356 |
explanations.append(f"Dog {i+1}: Top 3 possible breeds:\n"
|
357 |
f"1. **{topk_breeds[0]}** ({topk_probs_percent[0]} confidence)\n"
|