--- title: F1 Race Predictor 🏎️ emoji: 🏁 colorFrom: red sdk: streamlit sdk_version: 1.44.1 app_file: app.py pinned: false --- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference --- # 🏎️ F1 Race Predictor **F1 Race Predictor** is a simple and smart Streamlit app that predicts upcoming Formula 1 race results based on recent driver performances. ✅ Powered by live F1 data from [FastF1](https://docs.fastf1.dev) ✅ Predicts based on past race results (no manual updates needed) ✅ Future-proof (no deprecated APIs like Ergast) --- ## 📋 Features - Choose how many past races to consider (3-10 races) - Train a machine learning model (Random Forest) - Predict finish positions for the next Grand Prix - Only active drivers are considered - Simple, fast, lightweight Streamlit app --- ## 📦 Setup and Run No setup needed on Hugging Face Spaces! Just click **"Duplicate Space"** and run! If you run locally: ```bash pip install -r requirements.txt streamlit run app.py