Sam Chaudry
commited on
Add files using upload-large-folder tool
Browse files- .huggingfaceignore +1 -1
- upload_to_huggingface.py +2 -1
.huggingfaceignore
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Ignore virtual environments
|
2 |
-
venv
|
3 |
|
4 |
# Ignore cache and large files
|
5 |
__pycache__/
|
|
|
1 |
# Ignore virtual environments
|
2 |
+
venv/
|
3 |
|
4 |
# Ignore cache and large files
|
5 |
__pycache__/
|
upload_to_huggingface.py
CHANGED
@@ -12,7 +12,8 @@ create_repo(repo_id, private=False, exist_ok=True)
|
|
12 |
upload_large_folder(
|
13 |
repo_id=repo_id,
|
14 |
folder_path=".",
|
15 |
-
repo_type="model"
|
|
|
16 |
)
|
17 |
|
18 |
|
|
|
12 |
upload_large_folder(
|
13 |
repo_id=repo_id,
|
14 |
folder_path=".",
|
15 |
+
repo_type="model",
|
16 |
+
ignore_patterns=["venv/*", ".env", "__pycache__/*", "*.pyc", "*.ipynb", ".DS_Store", ".vscode/*", "cache/*"]
|
17 |
)
|
18 |
|
19 |
|