DatSplit commited on
Commit
7410c97
·
verified ·
1 Parent(s): 37639a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -114,7 +114,8 @@ def draw_predictions(boxes, labels, scores, img, score_threshold=0.5, font_size=
114
  labels=[f"{name}: {score:.2f}" for name, score in zip(label_names, scores_filtered)],
115
  colors=colors,
116
  width=10,
117
- font_size=60
 
118
  )
119
  imgs_list.append(img_bbox.permute(1, 2, 0).numpy()) # convert to HWC for Gradio
120
 
 
114
  labels=[f"{name}: {score:.2f}" for name, score in zip(label_names, scores_filtered)],
115
  colors=colors,
116
  width=10,
117
+ font_size=60,
118
+ font=None,
119
  )
120
  imgs_list.append(img_bbox.permute(1, 2, 0).numpy()) # convert to HWC for Gradio
121