programmnix-askui commited on
Commit
dc09f8c
Β·
1 Parent(s): 48483a7

test input

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -111,9 +111,9 @@ def deepseek(image, text_input, model_id):
111
 
112
  bbox = [ int(v.strip()) for v in det_content.split(",")]
113
  #w, h = image.size
114
- #bbox = [[bbox[0] * w, bbox[1] * h, bbox[2] * w, bbox[3] * h]]
115
 
116
- scaled_boxes = rescale_bounding_boxes([scaled_boxes], image.width, image.height)
117
  return text_input, scaled_boxes, draw_bounding_boxes(image, scaled_boxes)
118
 
119
 
 
111
 
112
  bbox = [ int(v.strip()) for v in det_content.split(",")]
113
  #w, h = image.size
114
+ #bbox = [[bbox[0] * w, bbox[1] * h, bbox[2] * w, bbox[3] * h]]
115
 
116
+ scaled_boxes = rescale_bounding_boxes([bbox], image.width, image.height)
117
  return text_input, scaled_boxes, draw_bounding_boxes(image, scaled_boxes)
118
 
119