Spaces:
Sleeping
Sleeping
Download scripts/fast_upload.py from ktoan911/Fake_Crypto_Claim_Detector: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/spaces/ktoan911/Fake_Crypto_Claim_Detector/resolve/main/scripts/fast_upload.py
- Command line
-
hf download hf://spaces/ktoan911/Fake_Crypto_Claim_Detector/scripts/fast_upload.py
-
curl -L -o fast_upload.py https://huggingface.co/spaces/ktoan911/Fake_Crypto_Claim_Detector/resolve/main/scripts/fast_upload.py
509 Bytes
| from huggingface_hub import HfApi | |
| api = HfApi() | |
| repo_id = "ktoan911/Fake_Crypto_Claim_Detector" | |
| api.upload_file( | |
| path_or_fileobj="requirements.txt", | |
| path_in_repo="requirements.txt", | |
| repo_id=repo_id, | |
| repo_type="space", | |
| ) | |
| print("Uploaded requirements.txt") | |
| api.upload_file( | |
| path_or_fileobj="src/database/opensearch.py", | |
| path_in_repo="src/database/opensearch.py", | |
| repo_id=repo_id, | |
| repo_type="space", | |
| ) | |
| print("Uploaded src/database/opensearch.py") | |
| print("Fast upload completed.") | |