Spaces:
Sleeping
Sleeping
File size: 1,309 Bytes
6a725a4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | # 🚀 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)
```bash
./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:
```bash
huggingface-cli repo create chatbot-mimic-notes --type space --sdk gradio
```
### Step 2: Clone the Space
```bash
git clone https://huggingface.co/spaces/jesseliu/chatbot-mimic-notes
cd chatbot-mimic-notes
```
### Step 3: Copy project files
```bash
# 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
```bash
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
|