A newer version of the Gradio SDK is available:
5.49.1
Quick Guide: Adding Video Templates to HuggingFace Space
Steps to Upload Templates from assets.zip
1. Download and Extract
- Download
assets.zipfrom: https://drive.google.com/file/d/1dg0SDAxEARClYq_6L1T1XIfWvC5iA8WD/view - Extract the zip file on your computer
- You should see a structure like:
assets/ βββ video_template/ β βββ dance_indoor_1/ β β βββ sdc.mp4 β β βββ vid.mp4 β β βββ ... β βββ sports_basketball_gym/ β βββ ...
2. Upload to HuggingFace Space
Option A: Via Web Interface (Easier)
- Go to your Space: https://huggingface.co/spaces/minhho/mimo-1.0
- Click on "Files" tab
- Navigate to or create:
assets/video_template/ - Click "Add file" β "Upload files"
- Drag and drop template folders (or individual files)
- Commit the changes
Option B: Via Git (Better for many files)
# Clone your space repository
git clone https://huggingface.co/spaces/minhho/mimo-1.0
cd mimo-1.0
# Copy templates from extracted assets.zip
cp -r /path/to/extracted/assets/video_template/* ./assets/video_template/
# Important: Don't add binary files to git without LFS
# Instead, add them one folder at a time through web interface
# OR set up Git LFS:
git lfs install
git lfs track "assets/video_template/**/*.mp4"
git add .gitattributes
git add assets/video_template/
git commit -m "Add video templates"
git push
3. Verify Templates Loaded
After uploading:
- Go back to your Space app
- Click "π Refresh Templates" button
- The dropdown should now show your uploaded templates
Which Templates to Upload First
If space is limited, prioritize these:
- dance_indoor_1 - Popular dance motion
- sports_basketball_gym - Sports motion
- movie_BruceLee1 - Martial arts action
- shorts_kungfu_desert1 - Another action template
Each template folder should contain at minimum:
sdc.mp4(REQUIRED - pose skeleton video)- Other files (vid.mp4, bk.mp4, occ.mp4) are optional but improve quality
Expected File Sizes
- Each template: ~10-50 MB
- Full template set: ~200-500 MB
- HuggingFace Spaces free tier: ~50GB storage (plenty for templates)
Troubleshooting
"No templates available" message
- Templates not uploaded yet
- Check file structure: must be in
assets/video_template/[template_name]/ - Each template folder must have
sdc.mp4
Upload fails / Space crashes
- Try uploading one template at a time
- Use smaller templates first
- Consider using Git LFS for large files
Templates don't show after upload
- Click "π Refresh Templates" button
- Restart the Space (Settings β Factory reboot)
- Check file permissions (should be readable)
Alternative: Work Without Templates
The app works perfectly fine WITHOUT templates:
- Use reference image only mode
- Generate animations based on the input image
- Upload templates later when convenient
Templates enhance variety but aren't required for core functionality!