yuhuizhang commited on
Commit
49e4fbb
·
verified ·
1 Parent(s): f79bb0e

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -335,7 +335,7 @@ def process_one_question(api_key, image, question, answer, components):
335
  choices = distractors["distractors"] + [answer]
336
  random.shuffle(choices)
337
 
338
- output = f"Question: {question}\n\nA. {choices[0]}\nB.{choices[1]}\nC. {choices[2]}\nD. {choices[3]}\n\nAnswer: {'ABCD'[choices.index(answer)]}"
339
  return output
340
 
341
 
 
335
  choices = distractors["distractors"] + [answer]
336
  random.shuffle(choices)
337
 
338
+ output = f"Question: {question}\n\nA. {choices[0]}\nB. {choices[1]}\nC. {choices[2]}\nD. {choices[3]}\n\nAnswer: {'ABCD'[choices.index(answer)]}"
339
  return output
340
 
341