SushantGautam commited on
Commit
6815557
·
1 Parent(s): 5d6cd88

Update submission download patterns to include nested JSON files and ensure hub_path directory is created if it doesn't exist

Browse files
Files changed (1) hide show
  1. gradio_interface.py +1 -1
gradio_interface.py CHANGED
@@ -21,7 +21,7 @@ def refresh_submissions():
21
  print("Deleted existing submissions")
22
 
23
  hub_path = snapshot_download(repo_type="dataset",
24
- repo_id=SUBMISSION_REPO, allow_patterns=['*.json'])
25
  print("Downloaded submissions to: ", hub_path)
26
  if not os.path.exists(hub_path):
27
  os.makedirs(hub_path) # empty repo case
 
21
  print("Deleted existing submissions")
22
 
23
  hub_path = snapshot_download(repo_type="dataset",
24
+ repo_id=SUBMISSION_REPO, allow_patterns=['**/*.json'])
25
  print("Downloaded submissions to: ", hub_path)
26
  if not os.path.exists(hub_path):
27
  os.makedirs(hub_path) # empty repo case