DawnC commited on
Commit
03c03ac
·
1 Parent(s): ceeda4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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}** ({topk_probs_percent[0]} confidence)")
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"