SushantGautam commited on
Commit
7665df1
·
1 Parent(s): e09eeb5

Add hf_hub_download import for dataset loading in challenge evaluation

Browse files
medvqa/competitions/gi-2025/task_2.py CHANGED
@@ -1,5 +1,5 @@
1
  from gradio_client import Client, handle_file
2
- from huggingface_hub import snapshot_download, login, whoami, hf_hub_download
3
  import argparse
4
  import os
5
  import subprocess as sp
@@ -98,6 +98,7 @@ if os.environ.get("_MEDVQA_CHALLENGE_EVALUATE_FLAG_", "FALSE") == "TRUE":
98
  else:
99
  insert_idx = None
100
  new_block = [
 
101
  'prompt_to_real = json.load(open(hf_hub_download("SimulaMet/Kvasir-VQA-private", "real_mapping", repo_type="dataset")))',
102
  'jsons__ = json.load(open(hf_hub_download("SimulaMet/Kvasir-VQA-private", "imagen-test", repo_type="dataset")))',
103
  ]
 
1
  from gradio_client import Client, handle_file
2
+ from huggingface_hub import snapshot_download, login, whoami
3
  import argparse
4
  import os
5
  import subprocess as sp
 
98
  else:
99
  insert_idx = None
100
  new_block = [
101
+ 'from huggingface_hub import hf_hub_download',
102
  'prompt_to_real = json.load(open(hf_hub_download("SimulaMet/Kvasir-VQA-private", "real_mapping", repo_type="dataset")))',
103
  'jsons__ = json.load(open(hf_hub_download("SimulaMet/Kvasir-VQA-private", "imagen-test", repo_type="dataset")))',
104
  ]