Inspiration
Lyra was inspired by the need to bring Formula 1 race strategy to life in real-time. F1 fans are passionate about the technical aspects of racing - tire strategies, fuel management, pit stop timing, and race data analysis. We wanted to create an immersive dashboard that makes complex race data accessible and engaging, combining the excitement of live F1 with cutting-edge AI commentary and interactive visualizations.
What it does
Lyra is a real-time race strategy dashboard that provides:
- Live Track Visualization: Interactive Circuit of the Americas-style track with smooth car movement and optimal racing lines
- AI-Powered Commentary: Gemini AI generates dynamic race commentary that ElevenLabs converts to natural speech
- Real-Time Data Analysis: Live monitoring of lap times, tire wear, fuel levels, and race status
- Strategic Decision Making: AI-driven pit stop recommendations with color-coded alerts (PIT NOW, Stay Out, etc.)
- Weather Integration: Real-time weather data affecting race strategy
- Professional F1 Dashboard: Authentic F1-style interface with gradient themes and animations
How we built it
Technology Stack:
- Frontend: Streamlit for rapid dashboard development
- AI Integration:
- Google Gemini API for intelligent race commentary
- ElevenLabs API for text-to-speech conversion
- Data Visualization: Plotly for interactive track and performance charts
- Real-time Processing: Python with pandas for data manipulation
- Styling: Custom CSS with F1-inspired gradient themes and animations
Key Components:
app.py: Main dashboard orchestrating all componentscomponents/track_visualization.py: Circuit visualization with smooth car movementcomponents/car_visualization.py: Interactive car with tire hotspot analysisai_commentary.py: AI commentary system with Gemini + ElevenLabs integration- Real-time data simulation with dynamic race scenarios
Challenges we ran into
- Streamlit State Management: Handling dynamic UI updates without page refreshes
- Smooth Track Animation: Creating realistic car movement around complex circuits
- AI Commentary Integration: Synchronizing text generation with audio playback
- Real-time Data Flow: Managing live data updates across multiple dashboard components
- Theme Consistency: Matching professional F1 styling across all components
- Audio Playback: Ensuring seamless audio generation and playback in Streamlit
Accomplishments that we're proud of
- Seamless AI Integration: Successfully integrated Gemini AI with ElevenLabs for natural race commentary
- Professional F1 Aesthetics: Created an authentic F1 dashboard experience with gradient themes and animations
- Interactive Track Visualization: Built a dynamic Circuit of the Americas track with smooth car movement
- Real-time Strategy Engine: Developed intelligent pit stop recommendations with visual alerts
- Modular Architecture: Clean, maintainable codebase with reusable components
- Live Data Simulation: Realistic race data with lap times, tire wear, and fuel management
What we learned
- Streamlit Advanced Features: Deep dive into session state management and dynamic UI updates
- AI API Integration: Working with multiple AI services (Gemini, ElevenLabs) for enhanced user experience
- Real-time Data Visualization: Creating smooth animations and interactive charts
- F1 Technical Knowledge: Understanding race strategy, tire compounds, fuel management, and pit stop timing
- User Experience Design: Balancing technical complexity with intuitive interface design
What's next for Real-Time Race Strategy
Immediate Enhancements:
- Live Data Integration: Connect to real F1 telemetry data streams
- Multi-Driver Support: Track multiple drivers simultaneously
- Advanced Analytics: Machine learning models for predictive race strategy
- Mobile Optimization: Responsive design for mobile devices
Future Features:
- VR Integration: Immersive virtual reality race experience
- Social Features: Multi-user collaboration on race strategy
- Historical Analysis: Access to past race data and strategy comparisons
- Custom Tracks: User-generated track layouts and scenarios
- Real-time Betting Integration: Fantasy F1 with live strategy decisions
Technical Roadmap:
- Microservices Architecture: Scalable backend for handling multiple concurrent users
- Real-time WebSocket Integration: Live data streaming from F1 sources
- Advanced AI Models: Custom-trained models for race strategy optimization
- Cloud Deployment: AWS/Azure deployment for global accessibility
Lyra represents the future of F1 fan engagement, combining cutting-edge technology with the passion and excitement of Formula 1 racing! 🏎️


Log in or sign up for Devpost to join the conversation.