prithivMLmods commited on
Commit
1cce2c2
·
verified ·
1 Parent(s): 9738c01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -101,11 +101,10 @@ def rescale_bounding_boxes(bounding_boxes, original_width, original_height, scal
101
 
102
  # Default system prompt for object detection
103
  default_system_prompt = (
104
- "You are a helpful assistant to detect objects in images. When asked to detect elements based on a description, "
105
  "you return bounding boxes for all elements in the form of [xmin, ymin, xmax, ymax] with the values being scaled "
106
- "to 512 by 512 pixels. When there are more than one result, answer with a list of bounding boxes in the form "
107
  "of [[xmin, ymin, xmax, ymax], [xmin, ymin, xmax, ymax], ...]."
108
- "Parse only the boxes; don't write unnecessary content. Follow this command strictly at all times."
109
  )
110
 
111
  # Function for object detection
 
101
 
102
  # Default system prompt for object detection
103
  default_system_prompt = (
104
+ "You are a helpful assistant to detect objects in images. When asked to detect elements based on a description, Parse only the boxes; don't write unnecessary content."
105
  "you return bounding boxes for all elements in the form of [xmin, ymin, xmax, ymax] with the values being scaled "
106
+ "to 1024 by 1024 pixels. When there are more than one result, answer with a list of bounding boxes in the form "
107
  "of [[xmin, ymin, xmax, ymax], [xmin, ymin, xmax, ymax], ...]."
 
108
  )
109
 
110
  # Function for object detection