Spaces:
Paused
Paused
Update app.py
Browse files31 unmodified lines32333435363738556 unmodified lines59559659759831 unmodified lines# Set your Hugging Face API key here# hf_token = "YOUR_HUGGING_FACE_API_KEY" # Replace with your actual token# Get Hugging Face token from secrets.toml - this line should already be in the main codehf_token = st.secrets["huggingface"]["key"]HUGGING_FACE_REPO_URL = "https://huggingface.co/spaces/acecalisto3/DevToolKit"PROJECT_ROOT = "projects"556 unmodified lines# Function to create a Space on Hugging Facedef create_space(api, name, description, public, files, entrypoint="launch.py"):url = f"{hf_hub_url()}spaces/{name}/prepare-repo"headers = {"Authorization": f"Bearer {api.access_token}"}31 unmodified lines32333435363738556 unmodified lines59559659759859931 unmodified lines# Set your Hugging Face API key here# hf_token = "YOUR_HUGGING_FACE_API_KEY" # Replace with your actual token# Get Hugging Face token from secrets.toml - this line should already be in the main codehf_token = "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"HUGGING_FACE_REPO_URL = "https://huggingface.co/spaces/acecalisto3/DevToolKit"PROJECT_ROOT = "projects"556 unmodified lines# Function to create a Space on Hugging Facedef create_space(api, name, description, public, files, entrypoint="launch.py"):url = f"{hf_hub_url()}spaces/{name}/prepare-repo"headers = {"Authorization": f"Bearer {api.access_token}"}
app.py+3-2