Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ def run_example(image, text_input, model_id="Qwen/Qwen2-VL-7B-Instruct"):
|
|
65 |
)
|
66 |
|
67 |
pattern = r'\[\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\]'
|
68 |
-
matches = re.findall(pattern,
|
69 |
result = [[int(num) for num in match] for match in matches]
|
70 |
return result
|
71 |
|
|
|
65 |
)
|
66 |
|
67 |
pattern = r'\[\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\]'
|
68 |
+
matches = re.findall(pattern, output_text)
|
69 |
result = [[int(num) for num in match] for match in matches]
|
70 |
return result
|
71 |
|