Skip to content

Commit

Permalink
Fix errors in validation pages
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Dec 18, 2024
1 parent 12e18a7 commit 8ff9908
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 122 deletions.
153 changes: 82 additions & 71 deletions docs/validation/constituencies.ipynb

Large diffs are not rendered by default.

86 changes: 37 additions & 49 deletions docs/validation/local_authorities.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@ def extract_zipped_folder(folder):
repo_filename=file.name,
local_folder=file.parent,
)
print(f"Extracting {file}")
extract_zipped_folder(file)
file.unlink()
2 changes: 1 addition & 1 deletion policyengine_uk_data/utils/huggingface.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ def download(
token = os.environ.get(
"HUGGING_FACE_TOKEN",
)
login(token=token)

hf_hub_download(
repo_id=repo,
repo_type="model",
filename=repo_filename,
local_dir=local_folder,
revision=version,
token=token,
)


Expand Down

0 comments on commit 8ff9908

Please # to comment.