pdf-based-chat / DEPLOY.md
windchime11's picture
Upload folder using huggingface_hub
b970b7b verified
|
Raw
History Blame Contribute Delete
678 Bytes

A newer version of the Gradio SDK is available: 6.20.0

Upgrade

Deploy to Hugging Face Spaces

  1. HuggingFace auth (once, before deploy):

    • uv tool install 'huggingface_hub[cli]' (if not already installed)
    • Create a token at https://huggingface.co/settings/tokens with WRITE permission
    • hf auth login --token YOUR_TOKEN
    • Add HF_TOKEN=hf_xxx to .env
  2. Deploy from this directory:

    uv run gradio deploy
    

    Follow prompts: specify app.py, choose hardware (e.g. cpu-basic), add secrets (OPENAI_API_KEY, PUSHOVER_TOKEN, PUSHOVER_USER), decline GitHub Actions if you prefer.

  3. If you redeploy later, delete any README.md that Gradio created in this folder so it prompts again.