chatbot-mimic-notes / DEPLOY_SIMPLE.md
Jesse Liu
init hf
6a725a4

A newer version of the Gradio SDK is available: 6.11.0

Upgrade

πŸš€ Simplest Deployment Path

Because this version of gradio deploy does not accept the --space flag, use Git-based deployment instead.

Option 1: Deployment Script (recommended)

./deploy_git.sh

The script automatically:

  1. Checks login status
  2. Creates or updates the Space
  3. Copies files and pushes via Git

Option 2: Manual Git Workflow

Step 1: Create the Space

Visit https://huggingface.co/new-space or run:

huggingface-cli repo create chatbot-mimic-notes --type space --sdk gradio

Step 2: Clone the Space

git clone https://huggingface.co/spaces/jesseliu/chatbot-mimic-notes
cd chatbot-mimic-notes

Step 3: Copy project files

# Copy required files
cp ../chatbot-mimic-notes/chatgpt.py .
cp ../chatbot-mimic-notes/README.md .
cp ../chatbot-mimic-notes/requirements.txt .
cp -r ../chatbot-mimic-notes/src ./src
cp ../chatbot-mimic-notes/google_drive_sync.py .

Step 4: Commit and push

git add .
git commit -m "Initial deployment"
git push

Done!

Wait 2–5 minutes for the build, then visit: https://huggingface.co/spaces/jesseliu/chatbot-mimic-notes

Configure Google Drive Secrets

  1. Open Space Settings
  2. Add secret: GOOGLE_SERVICE_ACCOUNT_JSON
  3. Paste the full Service Account JSON content