Spaces:
Sleeping
Sleeping
β‘ Quick Start Guide
π― Deploy to Hugging Face Spaces in 5 Minutes
Option 1: Web Upload (Easiest)
Create Space
- Go to https://huggingface.co/new-space
- Name:
pdf-summarizer(or your choice) - SDK: Select Gradio
- Hardware: CPU basic (free)
- Click Create Space
Upload Files via Web
- Click Files tab in your new space
- Click Add file β Upload files
- Upload these files:
app.pyrequirements.txtREADME.md
- Click Commit changes to main
Wait for Build
- Space will build automatically (2-5 minutes)
- You'll see "Building..." then "Running"
- Done! Your app is live!
Option 2: Git Upload (For developers)
# 1. Clone your space
git clone https://huggingface.co/spaces/YOUR_USERNAME/YOUR_SPACE_NAME
cd YOUR_SPACE_NAME
# 2. Copy files
cp /path/to/PDF-Summarizer-HF-Space/* .
# 3. Push to Hugging Face
git add .
git commit -m "Initial commit"
git push
π Files You Need
Required:
app.py- Main applicationrequirements.txt- Dependencies
Recommended:
README.md- Documentation.gitignore- Git ignore rules
π Getting Your Access Token
If you use Git method:
- Go to https://huggingface.co/settings/tokens
- Click New token
- Name: "Spaces"
- Permission: write
- Click Generate
- Copy token
- Use as password when pushing
β Testing Your Space
After deployment:
- Upload a test PDF
- Select BART model
- Click "Generate Summary"
- Download the result
If it works - you're done! π
π¨ Common Issues
Build Failed?
- Check the Logs tab
- Usually a typo in requirements.txt
Models Not Loading?
- Just wait - first build downloads ~2.6GB
- Can take 5-10 minutes
Out of Memory?
- Upgrade to CPU upgrade ($0.03/hr)
- Or use only BART (remove Long-T5)
π‘ Tips
- Start with free tier
- Upgrade if you get many users
- Set space to sleep after inactivity (saves resources)
- Share your space URL with friends!
π Need Help?
Check the full DEPLOYMENT_GUIDE.md for detailed instructions.
Your Space URL will be:
https://huggingface.co/spaces/YOUR_USERNAME/YOUR_SPACE_NAME
Example:
https://huggingface.co/spaces/mustafa/pdf-summarizer