yanziang commited on
Commit
4f8707c
·
verified ·
1 Parent(s): 57a688f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -97,13 +97,13 @@ for percption in range(num_percptions):
97
  example_prompt = QA_THINK_GLUE.replace("[QUESTION]", item["problem"]["question"])
98
 
99
 
100
- ans = inference(video_path, prompt, model, processor, device=device, client=client, pred_glue=pred_glue)
101
 
102
  pattern_glue = r'<glue>(.*?)</glue>'
103
  match_glue = re.search(pattern_glue, ans, re.DOTALL)
104
  # print(f'ann:{ans}')
105
  answers.append(ans)
106
-
107
  try:
108
  if match_glue:
109
  glue = match_glue.group(1)
 
97
  example_prompt = QA_THINK_GLUE.replace("[QUESTION]", item["problem"]["question"])
98
 
99
 
100
+ ans = inference(video_path, example_prompt, model, processor, device=device, client=client, pred_glue=pred_glue)
101
 
102
  pattern_glue = r'<glue>(.*?)</glue>'
103
  match_glue = re.search(pattern_glue, ans, re.DOTALL)
104
  # print(f'ann:{ans}')
105
  answers.append(ans)
106
+ pred_glue = None
107
  try:
108
  if match_glue:
109
  glue = match_glue.group(1)