Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions GUI_Dataset/WebUI/analysis.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from huggingface_hub import snapshot_download
from pathlib import Path


while True:
try:
dir = Path(__file__).parent
local_dir = dir / Path("data-7k")
snapshot_download(
repo_id="biglab/webui-7k",
repo_type="dataset",
local_dir=local_dir,
local_dir_use_symlinks=False,
resume_download=True,
)
break
except ConnectionError:
pass