Spaces:
Build error
Build error
Download dataset_loader.py from dahreply/Unique_Fire_Chatbot: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/spaces/dahreply/Unique_Fire_Chatbot/resolve/main/dataset_loader.py
- Command line
-
hf download hf://spaces/dahreply/Unique_Fire_Chatbot/dataset_loader.py
-
curl -L -o dataset_loader.py https://huggingface.co/spaces/dahreply/Unique_Fire_Chatbot/resolve/main/dataset_loader.py
381 Bytes
| from huggingface_hub import Repository | |
| from huggingface_hub import login | |
| import os | |
| def load_dataset(): | |
| login(token = os.environ['HUB_TOKEN']) | |
| repo = Repository( | |
| local_dir="agent_function", | |
| repo_type="dataset", | |
| clone_from="gheng/unique_fire", | |
| token=True, | |
| git_email='zhiheng_dev@dahreply.ai' | |
| ) | |
| repo.git_pull() | |
| load_dataset() |