EJ-L
commited on
Commit
·
2287a37
1
Parent(s):
b081338
mod
Browse files
app.py
CHANGED
|
@@ -97,7 +97,7 @@ def run_example(image, text_input, model_id="OS-Copilot/OS-Atlas-Base-7B"):
|
|
| 97 |
boxes = [[boxes[0][0], boxes[0][1], boxes[1][0], boxes[1][1]]]
|
| 98 |
|
| 99 |
scaled_boxes = rescale_bounding_boxes(boxes, image.width, image.height)
|
| 100 |
-
return object_ref,
|
| 101 |
|
| 102 |
css = """
|
| 103 |
#output {
|
|
|
|
| 97 |
boxes = [[boxes[0][0], boxes[0][1], boxes[1][0], boxes[1][1]]]
|
| 98 |
|
| 99 |
scaled_boxes = rescale_bounding_boxes(boxes, image.width, image.height)
|
| 100 |
+
return object_ref, text, draw_bounding_boxes(image, scaled_boxes)
|
| 101 |
|
| 102 |
css = """
|
| 103 |
#output {
|