maxiw commited on
Commit
e58d5af
·
verified ·
1 Parent(s): f04086b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -87,7 +87,7 @@ def run_example(image, text_input, model_id="Qwen/Qwen2-VL-7B-Instruct"):
87
  output_text = processor.batch_decode(
88
  generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False
89
  )
90
-
91
  pattern = r'\[\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\]'
92
  matches = re.findall(pattern, str(output_text))
93
  parsed_boxes = [[int(num) for num in match] for match in matches]
 
87
  output_text = processor.batch_decode(
88
  generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False
89
  )
90
+ print(output_text)
91
  pattern = r'\[\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\]'
92
  matches = re.findall(pattern, str(output_text))
93
  parsed_boxes = [[int(num) for num in match] for match in matches]