r/Python • • 24d ago

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

28 Upvotes

169 comments sorted by

View all comments

Show parent comment

1

u/krishyalla 6d ago

Update: the Vegas prediction got the winner right (Verstappen from P2, 45%) and 2 of 3 on the podium.

New since posting: a grid-penalty feature. The free F1 API only has the qualifying order before a race, so penalties weren't included, and that's why the model missed Piastri climbing from 17th to 3rd. You can now add place drops, back-of-grid or pit-lane starts, and the app rebuilds the grid by F1's rules and re-predicts. The logic is a small pure function, so it was easy to unit test.

Live: lightstoflag.streamlit.app