Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,7 +101,7 @@ with col2:
|
|
| 101 |
|
| 102 |
# Get the coordinates from the output text and denormalize them
|
| 103 |
coordinates = extract_coordinates(output_text)
|
| 104 |
-
if coordinates
|
| 105 |
coordinates = unnormalize_box(coordinates, unnormalized_image.width, unnormalized_image.height)
|
| 106 |
|
| 107 |
draw = ImageDraw.Draw(unnormalized_image)
|
|
|
|
| 101 |
|
| 102 |
# Get the coordinates from the output text and denormalize them
|
| 103 |
coordinates = extract_coordinates(output_text)
|
| 104 |
+
if coordinates:
|
| 105 |
coordinates = unnormalize_box(coordinates, unnormalized_image.width, unnormalized_image.height)
|
| 106 |
|
| 107 |
draw = ImageDraw.Draw(unnormalized_image)
|