yassinekolsi commited on
Commit
32dc2be
·
1 Parent(s): e87fea1

Deployment setup: HuggingFace Spaces + Vercel config

Browse files
Files changed (1) hide show
  1. upload_to_hf.py +20 -0
upload_to_hf.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Quick upload script for HuggingFace Spaces deployment."""
2
+ import os
3
+ from huggingface_hub import HfApi
4
+
5
+ # Read token
6
+ token_path = os.path.expanduser("~/.cache/huggingface/token")
7
+ with open(token_path) as f:
8
+ token = f.read().strip()
9
+
10
+ api = HfApi()
11
+
12
+ # Upload the clean deployment folder
13
+ api.upload_folder(
14
+ folder_path="C:/temp/bioflow_deploy",
15
+ repo_id="vignt97867896/bioflow",
16
+ repo_type="space",
17
+ token=token,
18
+ )
19
+
20
+ print("Upload complete! Check https://huggingface.co/spaces/vignt97867896/bioflow")