from huggingface_hub import upload_file | |
import os | |
hf_token = os.getenv("HF_TOKEN") | |
# νμΌ μ λ‘λ | |
upload_file( | |
path_or_fileobj="./temp.py", # μ λ‘λν νμΌ κ²½λ‘ | |
path_in_repo="temp.py", # 리ν¬μ§ν 리μμμ νμΌ κ²½λ‘ | |
repo_id="yerang/txt2liveportrait", | |
token=hf_token # Hugging Face ν ν° | |
) | |