"vscode:/vscode.git/clone" did not exist on "9120ae7d66e3f76f375fd7c941c721ca9164f581"
Unverified Commit 787d918b authored by Geewook Kim's avatar Geewook Kim Committed by GitHub
Browse files

fix: typo, related to #15

parent 4cfb6567
......@@ -43,7 +43,7 @@ def test(args):
if args.task_name == "docvqa":
output = pretrained_model.inference(
image=sample["image"],
prompt=f"<s_{args.task_name}><s_question>{ground_truth["gt_parses"][0]['question'].lower()}</s_question><s_answer>",
prompt=f"<s_{args.task_name}><s_question>{ground_truth['gt_parses'][0]['question'].lower()}</s_question><s_answer>",
)["predictions"][0]
else:
output = pretrained_model.inference(image=sample["image"], prompt=f"<s_{args.task_name}>")["predictions"][0]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment