Spaces:
Runtime error
Runtime error
from huggingface_hub import HfApi | |
import os | |
api = HfApi(token=os.environ["sc4sc_token"]) | |
# โ ในใใผในใๅ ใซไฝๆ๏ผใใใ้่ฆ๏ผ๏ผ | |
api.create_repo( | |
repo_id="sc4sc/editor", | |
repo_type="space", | |
space_sdk="docker", # โ 'gradio', 'streamlit', 'docker', 'static' ใฎใฉใใใๅฟ ใๆๅฎ | |
private=False, | |
exist_ok=True | |
) | |
# โ ใใฎๅพใซใขใใใญใผใ | |
api.upload_large_folder( | |
folder_path=".", | |
repo_id="sc4sc/editor", | |
repo_type="space", | |
allow_patterns="**/*" | |
) | |