Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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]
|