Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.11.0
π 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:
- Checks login status
- Creates or updates the Space
- 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
- Open Space Settings
- Add secret:
GOOGLE_SERVICE_ACCOUNT_JSON - Paste the full Service Account JSON content