guapaQAQ commited on
Commit
be1ce11
·
1 Parent(s): 9a4c6c9

Update README & zip

Browse files
Files changed (1) hide show
  1. README.md +19 -1
README.md CHANGED
@@ -75,7 +75,25 @@ gametime/basic/
75
  You can download and unzip:
76
 
77
  ```bash
78
- wget https://huggingface.co/datasets/gametime-benchmark/gametime/resolve/main/gametime/download/gametime_basic_v1.zip
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  unzip gametime_basic_v1.zip
80
  ```
81
 
 
75
  You can download and unzip:
76
 
77
  ```bash
78
+ # pip install -U huggingface_hub
79
+ import os
80
+ from huggingface_hub import hf_hub_download
81
+
82
+ # 你的 token:優先用環境變數,沒有就直接字串
83
+ token = os.getenv("HF_TOKEN") or "<YOUR_HF_TOKEN>"
84
+
85
+ # 注意 filename 必須是 repo 裡的「相對路徑」
86
+ # 你剛才的 ZIP 是放在資料集倉庫的:gametime/download/gametime_basic_v1.zip
87
+ # 如果不確定,先看第 2 步「列出檔案」確認實際路徑
88
+ path = hf_hub_download(
89
+ repo_id="gametime-benchmark/gametime",
90
+ repo_type="dataset",
91
+ filename="gametime/download/gametime_basic_v1.zip", # <- 路徑要對
92
+ revision="main", # 或指定 commit sha
93
+ token=token,
94
+ local_dir=".", # 下載到目前目錄
95
+ )
96
+ print("saved to:", path)
97
  unzip gametime_basic_v1.zip
98
  ```
99