maxiw commited on
Commit
59c0321
1 Parent(s): b3da3e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, string)
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