pratikshahp commited on
Commit
d3d4ae7
1 Parent(s): 079e2da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -54,6 +54,6 @@ if submit:
54
  for score, label, box in zip(results["scores"], results["labels"], results["boxes"]):
55
  box = [round(i, 2) for i in box.tolist()]
56
  st.write(
57
- f"Detected {model.config.id2label[label.item()]} with confidence "
58
- f"{round(score.item(), 3)} at location {box}"
59
  )
 
54
  for score, label, box in zip(results["scores"], results["labels"], results["boxes"]):
55
  box = [round(i, 2) for i in box.tolist()]
56
  st.write(
57
+ f"Detected :orange[{model.config.id2label[label.item()]}] with confidence "
58
+ f":green[{round(score.item(), 3)}] at location :violet[{box}]"
59
  )