Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.12.0
🚀 Steps to Deploy on Hugging Face
Step 1: Generate a Hugging Face token
- Visit https://huggingface.co/settings/tokens
- Click “New token”
- Choose “Write” permission
- Copy the generated token
Step 2: Log in to Hugging Face
Run in your terminal:
huggingface-cli login
Then paste your token when prompted.
Or provide it via environment variable:
export HF_TOKEN="your_token"
huggingface-cli login --token $HF_TOKEN
Step 3: Deploy the app
Run:
gradio deploy
Or use the helper script:
./deploy_hf.sh
Step 4: Add Google Drive secrets (post-deployment)
- Open your Space page:
https://huggingface.co/spaces/<username>/<space-name> - Go to the “Settings” tab
- Under “Repository secrets” add:
- Name:
GOOGLE_SERVICE_ACCOUNT_JSON - Value: paste the full Service Account JSON content
- Name:
Done!
Wait 2–5 minutes for the build to finish, then open your Space URL.