Spaces:
Running
Running
yuhuizhang
commited on
Upload folder using huggingface_hub
Browse files
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 |
|