Spaces:
Running
Running
Download app_utils/upload_model.py from HassounLab/FLARE: direct link, hf CLI and curl.
- Browser
- Download file 336 Bytes
-
https://huggingface.co/spaces/HassounLab/FLARE/resolve/2afdf25f03e21d82b94de7e6138c7af3a1f44e5d/app_utils/upload_model.py
- Command line
-
hf download hf://spaces/HassounLab/FLARE@2afdf25f03e21d82b94de7e6138c7af3a1f44e5d/app_utils/upload_model.py
-
curl -L -o upload_model.py https://huggingface.co/spaces/HassounLab/FLARE/resolve/2afdf25f03e21d82b94de7e6138c7af3a1f44e5d/app_utils/upload_model.py
336 Bytes
| from huggingface_hub import HfApi | |
| api = HfApi() | |
| api.upload_file( | |
| path_or_fileobj="experiments/20250913_optimized_filip-model/epoch=1993-train_loss=0.10.ckpt", | |
| path_in_repo="epoch=1993-train_loss=0.10.ckpt", | |
| repo_id="yzhouchen001/flare", | |
| repo_type="space", # automatically uses your saved token | |
| use_auth_token=True | |
| ) |