fix huggingface api usage
Browse files
README.md
CHANGED
@@ -172,15 +172,24 @@ Each index CSV in `MobileViews_Apps_CompleteTraces/Index_CSV.zip` lists the app
|
|
172 |
pip install huggingface_hub
|
173 |
```
|
174 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
**Download specific files:**
|
176 |
|
177 |
```python
|
178 |
from huggingface_hub import hf_hub_download
|
179 |
|
180 |
# Download specific files
|
181 |
-
hf_hub_download(repo_id="mllmTeam/MobileViews", filename="MobileViews_Screenshots_ViewHierarchies/Parquets/MobileViews_0-150000.parquet")
|
182 |
-
hf_hub_download(repo_id="mllmTeam/MobileViews", filename="MobileViews_Screenshots_ViewHierarchies/Zip_Files/MobileViews_0-150000.zip")
|
183 |
-
hf_hub_download(repo_id="mllmTeam/MobileViews", filename="AppMetadata.csv")
|
184 |
```
|
185 |
|
186 |
**Download the entire repository:**
|
@@ -191,7 +200,7 @@ from huggingface_hub
|
|
191 |
import snapshot_download
|
192 |
|
193 |
# Download the entire repository
|
194 |
-
snapshot_download(repo_id="mllmTeam/MobileViews")
|
195 |
```
|
196 |
|
197 |
## 📋 Usage Guidelines
|
|
|
172 |
pip install huggingface_hub
|
173 |
```
|
174 |
|
175 |
+
Before downloading, please ensure you are logged in with your Hugging Face token. If you don't have a token, you can create your own `Access Tokens` at Hugging Face.
|
176 |
+
|
177 |
+
**Login with your token:**
|
178 |
+
|
179 |
+
```python
|
180 |
+
huggingface-cli login
|
181 |
+
```
|
182 |
+
Follow the prompts to input your token.
|
183 |
+
|
184 |
**Download specific files:**
|
185 |
|
186 |
```python
|
187 |
from huggingface_hub import hf_hub_download
|
188 |
|
189 |
# Download specific files
|
190 |
+
hf_hub_download(repo_id="mllmTeam/MobileViews", filename="MobileViews_Screenshots_ViewHierarchies/Parquets/MobileViews_0-150000.parquet", repo_type="dataset")
|
191 |
+
hf_hub_download(repo_id="mllmTeam/MobileViews", filename="MobileViews_Screenshots_ViewHierarchies/Zip_Files/MobileViews_0-150000.zip", repo_type="dataset")
|
192 |
+
hf_hub_download(repo_id="mllmTeam/MobileViews", filename="AppMetadata.csv", repo_type="dataset")
|
193 |
```
|
194 |
|
195 |
**Download the entire repository:**
|
|
|
200 |
import snapshot_download
|
201 |
|
202 |
# Download the entire repository
|
203 |
+
snapshot_download(repo_id="mllmTeam/MobileViews", repo_type="dataset")
|
204 |
```
|
205 |
|
206 |
## 📋 Usage Guidelines
|