Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.6.0
Gradio Deploy Instructions
Prerequisites
- Make sure you're in the
fantasy-draft-agentdirectory - Activate your virtual environment:
source venv/bin/activate - Have your Hugging Face account ready
Run the Deploy Command
gradio deploy
What You'll Be Asked:
Hugging Face Token:
- Go to https://huggingface.co/settings/tokens
- Create a new token with 'write' permissions
- Copy and paste it when prompted
Space Name: Enter something like
fantasy-draft-demoHardware: Choose
cpu-basic(free tier)Want to create a secret?:
- Type
yes - Secret name:
OPENAI_API_KEY - Secret value: Your OpenAI API key
- Type
Space visibility: Choose
publicorprivate
After Deployment
The command will:
- Automatically create the Space
- Upload all your files
- Set up the environment
- Provide you with the Space URL
Important Notes
- The deploy command uses
app.pyas the entry point (which we already created) - It will automatically detect and upload your
requirements.txt - The README_HF.md metadata will be used if you rename it to README.md first
- You can run
gradio deployagain to update an existing Space