Spaces:
Runtime error
Runtime error
Commit
Β·
dc09f8c
1
Parent(s):
48483a7
test input
Browse files
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([
|
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 |
|