Cree1865-Tinker-Inference / PUSH_INSTRUCTIONS.md
HarleyCooper's picture
Clean Cree1865 Space deployment docs
fc7b939 verified
|
Raw
History Blame Contribute Delete
946 Bytes

A newer version of the Gradio SDK is available: 6.23.1

Upgrade

Push Instructions

This directory is the Hugging Face Space bundle for the Cree1865 Tinker inference app.

One-Time Setup

Create the Space if it does not already exist:

hf repos create HarleyCooper/Cree1865-Tinker-Inference --type space --space-sdk gradio --exist-ok

Set the TINKER_API_KEY Space secret in the Hugging Face UI or with huggingface_hub.HfApi.add_space_secret.

Upload

From C:\Users\chris\Cree1865:

@'
from huggingface_hub import HfApi
api = HfApi()
api.upload_folder(
    repo_id="HarleyCooper/Cree1865-Tinker-Inference",
    repo_type="space",
    folder_path=r"C:\Users\chris\Cree1865\huggingface_space",
    path_in_repo=".",
    ignore_patterns=["**/__pycache__/**", "*.pyc"],
    commit_message="Update Cree1865 Tinker inference Space",
)
'@ | python -

Do not commit API keys. The app reads TINKER_API_KEY only from environment variables or Hugging Face Space secrets.