Spaces:
Running

WC / README.md
Dzung Doan
Update files
a2ea301
|
Raw History Blame Contribute Delete
3.45 kB
---
title: World Cup AI Assistant UI
emoji: "πŸ†"
colorFrom: blue
colorTo: green
sdk: streamlit
sdk_version: "1.28.0"
app_file: app.py
pinned: false
---
# World Cup AI Assistant - Enhanced UI
## 🎡 Media Assets Setup
### Required Media Files
To complete the enhanced UI with music and video, you'll need to add the following files to the `assets/` directory:
#### Audio Files
- `world_cup_1990_theme.mp3` - World Cup 1990 theme "Un'estate italiana" (To Be Number One)
- `world_cup_anthem.mp3` - FIFA World Cup anthem
- `crowd_cheer.mp3` - Crowd cheering sound effect
#### Video Files
- `world_cup_highlights.mp4` - World Cup highlights compilation
- `stadium_ambiance.mp4` - Stadium atmosphere video
- `trophy_celebration.mp4` - Trophy celebration moments
#### Image Files
- `world_cup_background.jpg` - High-quality World Cup background image
- `trophy_icon.png` - World Cup trophy icon
- `soccer_field.jpg` - Soccer field background
### Media Sources
#### Free/Legal Sources
1. **FIFA Official**: Limited free content from FIFA website
2. **Creative Commons**: Search for World Cup content with CC licenses
3. **Public Domain**: Historical World Cup footage
4. **Stock Media**: Free stock video/audio sites
#### Recommended Sources
- **Pixabay**: Free World Cup videos and images
- **Pexels**: High-quality free stock footage
- **Unsplash**: Professional sports photography
- **YouTube**: Creative Commons licensed World Cup content
### File Structure
```
worldcup-ui-app/
β”œβ”€β”€ app.py
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ assets/
β”‚ β”œβ”€β”€ audio/
β”‚ β”‚ β”œβ”€β”€ world_cup_1990_theme.mp3
β”‚ β”‚ β”œβ”€β”€ world_cup_anthem.mp3
β”‚ β”‚ └── crowd_cheer.mp3
β”‚ β”œβ”€β”€ video/
β”‚ β”‚ β”œβ”€β”€ world_cup_highlights.mp4
β”‚ β”‚ β”œβ”€β”€ stadium_ambiance.mp4
β”‚ β”‚ └── trophy_celebration.mp4
β”‚ └── images/
β”‚ β”œβ”€β”€ world_cup_background.jpg
β”‚ β”œβ”€β”€ trophy_icon.png
β”‚ └── soccer_field.jpg
└── README.md
```
## πŸš€ Deployment
### Hugging Face Spaces
1. Upload media files to the Space
2. Update file paths in `app.py`
3. Deploy to HF Spaces
### Custom Domain (world-cup.ai)
1. Configure domain DNS
2. Set up reverse proxy
3. Update CORS settings
### WordPress Integration
- Embed iframe pointing to the app
- Responsive design for mobile
- SEO optimization
## 🎨 Features
### Enhanced UI Elements
- **Background Music**: World Cup theme songs
- **Background Video**: World Cup highlights
- **Interactive Controls**: Toggle music/video on/off
- **Enhanced Styling**: Golden World Cup theme
- **Responsive Design**: Works on all devices
### Media Controls
- **Music Toggle**: Turn background music on/off
- **Video Toggle**: Turn background video on/off
- **Volume Control**: Adjust audio levels
- **Auto-play Settings**: Configure media behavior
## πŸ“± Mobile Optimization
- Touch-friendly controls
- Optimized video loading
- Reduced bandwidth usage
- Progressive enhancement
## πŸ”§ Technical Notes
### Streamlit Limitations
- Audio autoplay may be blocked by browsers
- Video autoplay requires user interaction
- File size limits for HF Spaces
### Performance Considerations
- Compress media files for faster loading
- Use CDN for large files
- Implement lazy loading
- Cache media assets
### Browser Compatibility
- Modern browsers support all features
- Fallback for older browsers
- Mobile browser optimization