--- 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