Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
A newer version of the Gradio SDK is available:
5.39.0
Gradio Deploy Instructions
Prerequisites
- Make sure you're in the
fantasy-draft-agent
directory - 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-demo
Hardware: 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
public
orprivate
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.py
as 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 deploy
again to update an existing Space