File size: 1,049 Bytes
581c13c
 
 
 
 
9aff41b
581c13c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9aff41b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
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