Spaces:
Running
Running
Download upload_to_hf.py from vignt97867896/bioflow: direct link, hf CLI and curl.
- Browser
- Download file 516 Bytes
-
https://huggingface.co/spaces/vignt97867896/bioflow/resolve/main/upload_to_hf.py
- Command line
-
hf download hf://spaces/vignt97867896/bioflow/upload_to_hf.py
-
curl -L -o upload_to_hf.py https://huggingface.co/spaces/vignt97867896/bioflow/resolve/main/upload_to_hf.py
516 Bytes
| """Quick upload script for HuggingFace Spaces deployment.""" | |
| import os | |
| from huggingface_hub import HfApi | |
| # Read token | |
| token_path = os.path.expanduser("~/.cache/huggingface/token") | |
| with open(token_path) as f: | |
| token = f.read().strip() | |
| api = HfApi() | |
| # Upload the clean deployment folder | |
| api.upload_folder( | |
| folder_path="C:/temp/bioflow_deploy", | |
| repo_id="vignt97867896/bioflow", | |
| repo_type="space", | |
| token=token, | |
| ) | |
| print("Upload complete! Check https://huggingface.co/spaces/vignt97867896/bioflow") | |