kh-CHEUNG commited on
Commit
c032942
·
verified ·
1 Parent(s): 92e4882

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 is not None:
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)