adhvaith-spz commited on
Commit
e9fd770
·
verified ·
1 Parent(s): 8e0e537

Upload folder using huggingface_hub

Browse files
.github/workflows/deploy-to-hf-spaces.yml CHANGED
@@ -111,13 +111,22 @@ jobs:
111
  import os
112
  from huggingface_hub import upload_folder
113
 
 
 
 
 
 
 
 
 
 
 
114
  upload_folder(
115
  folder_path=".",
116
  repo_id=os.environ["SPACE_ID"],
117
  repo_type="space",
118
  token=os.environ["HF_TOKEN"],
119
- # deny_patterns can add extra safety if you keep local envs:
120
- # deny_patterns=["**/__pycache__/**", "**/.env", "**/.git/**", "**/.venv/**"]
121
  )
122
  PY
123
 
 
111
  import os
112
  from huggingface_hub import upload_folder
113
 
114
+ ignore_patterns = [
115
+ ".github"
116
+ ".vscode"
117
+ ".venv"
118
+ ".git"
119
+ ".gitignore"
120
+ ".gitignore"
121
+ ]
122
+
123
+
124
  upload_folder(
125
  folder_path=".",
126
  repo_id=os.environ["SPACE_ID"],
127
  repo_type="space",
128
  token=os.environ["HF_TOKEN"],
129
+ ignore_patterns=ignore_patterns,
 
130
  )
131
  PY
132