Spaces:
Runtime error
Runtime error
kbberendsen
commited on
Commit
•
12c311f
1
Parent(s):
6706c02
add UK track
Browse files- __pycache__/app.cpython-311.pyc +0 -0
- app.py +4 -5
- cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-07_Qualifying/car_data.ff1pkl +3 -0
- cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-07_Qualifying/driver_info.ff1pkl +3 -0
- cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-07_Qualifying/position_data.ff1pkl +3 -0
- cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-07_Qualifying/race_control_messages.ff1pkl +3 -0
- cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-07_Qualifying/session_status_data.ff1pkl +3 -0
- cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-07_Qualifying/track_status_data.ff1pkl +3 -0
- cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-07_Qualifying/weather_data.ff1pkl +3 -0
- cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/car_data.ff1pkl +3 -0
- cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/driver_info.ff1pkl +3 -0
- cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/lap_count.ff1pkl +3 -0
- cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/position_data.ff1pkl +3 -0
- cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/race_control_messages.ff1pkl +3 -0
- cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/session_status_data.ff1pkl +3 -0
- cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/timing_app_data.ff1pkl +3 -0
- cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/timing_data.ff1pkl +3 -0
- cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/track_status_data.ff1pkl +3 -0
- cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/weather_data.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-06_Qualifying/car_data.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-06_Qualifying/driver_info.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-06_Qualifying/position_data.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-06_Qualifying/race_control_messages.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-06_Qualifying/session_status_data.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-06_Qualifying/timing_app_data.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-06_Qualifying/timing_data.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-06_Qualifying/track_status_data.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-06_Qualifying/weather_data.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/car_data.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/driver_info.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/lap_count.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/position_data.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/race_control_messages.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/session_status_data.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/timing_app_data.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/timing_data.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/track_status_data.ff1pkl +3 -0
- cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/weather_data.ff1pkl +3 -0
- cache/fastf1_http_cache.sqlite +2 -2
__pycache__/app.cpython-311.pyc
CHANGED
Binary files a/__pycache__/app.cpython-311.pyc and b/__pycache__/app.cpython-311.pyc differ
|
|
app.py
CHANGED
@@ -14,7 +14,7 @@ print(f"Cache path: {cache_path}")
|
|
14 |
ff1.Cache.enable_cache(cache_path)
|
15 |
|
16 |
# Offline mode to prevent F1 API crashes on Hugging Face
|
17 |
-
ff1.Cache.offline_mode(enabled=True)
|
18 |
|
19 |
# Define drivers
|
20 |
drivers_2023 = {'Fastest driver': 'Fastest driver', 'VER': 'Max Verstappen',
|
@@ -43,7 +43,7 @@ app_ui = ui.page_fluid(
|
|
43 |
ui.panel_sidebar(
|
44 |
ui.input_select(
|
45 |
"track_select", "Select track:",
|
46 |
-
choices = ["Austria", "Hungary", "Spain", "Bahrain", "
|
47 |
selected = "Austria"
|
48 |
),
|
49 |
ui.input_select(
|
@@ -111,9 +111,8 @@ def server(input, output, session):
|
|
111 |
return segments, gear, driver
|
112 |
|
113 |
except Exception:
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
@output
|
118 |
@render.text
|
119 |
def fastest_driver():
|
|
|
14 |
ff1.Cache.enable_cache(cache_path)
|
15 |
|
16 |
# Offline mode to prevent F1 API crashes on Hugging Face
|
17 |
+
#ff1.Cache.offline_mode(enabled=True)
|
18 |
|
19 |
# Define drivers
|
20 |
drivers_2023 = {'Fastest driver': 'Fastest driver', 'VER': 'Max Verstappen',
|
|
|
43 |
ui.panel_sidebar(
|
44 |
ui.input_select(
|
45 |
"track_select", "Select track:",
|
46 |
+
choices = ["Austria", "Hungary", "Spain", "Bahrain", "United-Kingdom"],
|
47 |
selected = "Austria"
|
48 |
),
|
49 |
ui.input_select(
|
|
|
111 |
return segments, gear, driver
|
112 |
|
113 |
except Exception:
|
114 |
+
ui.notification_show("Data not available. Select another track or driver.", duration=10, type = 'error')
|
115 |
+
|
|
|
116 |
@output
|
117 |
@render.text
|
118 |
def fastest_driver():
|
cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-07_Qualifying/car_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7a1ed6cd6226fe5966fb3afb593068804b699ee0d502730f0ac9f164a05410b8
|
3 |
+
size 20770075
|
cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-07_Qualifying/driver_info.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8ac29e6d7c60735b73a28b09c78747115fe32a81b277e23bb6724b4d72ae1b8b
|
3 |
+
size 5238
|
cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-07_Qualifying/position_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e4d08088d600ff0b2c64ad3ce667ac05fe9bf5d10bbfab18b53e7fc991d5facf
|
3 |
+
size 19931679
|
cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-07_Qualifying/race_control_messages.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:935c7dedc2501c6faa742d0c8744b6f9971473debcf77650a92e02934ecec947
|
3 |
+
size 1837
|
cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-07_Qualifying/session_status_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:190fc93fbaa69fa8218247322d4ef8fa52d552df799424415bb3f07d57c0d71b
|
3 |
+
size 376
|
cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-07_Qualifying/track_status_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:33a006cd1e7df28e4659cb78d21506a887ba8bf01a0f9309a1ff6eb7581de3ec
|
3 |
+
size 127
|
cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-07_Qualifying/weather_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0e62719696a5ee9031a2ff82de5ef739e130c0c7c62d4962397f0b576a94ad9b
|
3 |
+
size 5325
|
cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/car_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ccfbdb9566965d2ecf3fdd0207ab799ea915d509d71e5d01f9f65dc32f76d219
|
3 |
+
size 42748515
|
cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/driver_info.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2aadcacdd715c66b4a52241b2ee43509717ebee0b2f76332b7042488fb6fc5d0
|
3 |
+
size 5127
|
cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/lap_count.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dc11328500a22ae696e461a8a6527f2ea973a1d65ed97952beda8fc1dc871e26
|
3 |
+
size 1183
|
cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/position_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fa5be220776a0215fcbc78b2b8c29d2d723921f895375c089e5e24ac6650206e
|
3 |
+
size 46882804
|
cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/race_control_messages.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:96ed476d314be91dd74c3528d8d4b5628f1c075e7c3d88d3afc86372a5392724
|
3 |
+
size 7361
|
cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/session_status_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d8d877d7cbe31a852fd5011f660387025636da4c5291e3a79522bf337df49890
|
3 |
+
size 216
|
cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/timing_app_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bd33d65f2c4fb98baa037dede662094e081670d7293447f1491d89f6936cd3ca
|
3 |
+
size 99446
|
cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/timing_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3e52fd35aa79aa9bee80979a2448d7e19362ade99d8451ee9c11c3c0ac5e8a37
|
3 |
+
size 1069922
|
cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/track_status_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3f01024abe98e0a67a92a00d255663d3fa634197a229af9eb0839388987f9e94
|
3 |
+
size 479
|
cache/2022/2022-05-08_Miami_Grand_Prix/2022-05-08_Race/weather_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fdca6968012112dd61118f83068746a84ec8451bb32e67da82106e88e7e71bd3
|
3 |
+
size 10538
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-06_Qualifying/car_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:27cdcc1d95ca4d74eae2b97b43cf898b0a9d58cc26e053b580c4156f2f539bf7
|
3 |
+
size 20687477
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-06_Qualifying/driver_info.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cc64eb38df143fa40acc49d4c117cd49bff617fb67b626522e1c0254affd5001
|
3 |
+
size 5358
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-06_Qualifying/position_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:debb82729b6e5550517117776042fd5b5f5b2120dd512acee83c93189bf5aabb
|
3 |
+
size 19808441
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-06_Qualifying/race_control_messages.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:be6a195139bcc41649138e95fc7fd921eeab23b8d2929e8ed9c89313b065fb2d
|
3 |
+
size 2424
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-06_Qualifying/session_status_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ac57eb9484313816385eecf5499c3b72fd684869433dbe91930d2489bd0bd02e
|
3 |
+
size 375
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-06_Qualifying/timing_app_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1edd3e5c124e94cfe64971c5216088099f23b753b87862d950909543bd3bfeb9
|
3 |
+
size 37573
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-06_Qualifying/timing_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2807d6f44d694b79bcec8c382fc7418d012938fdb2e26a750bece9f30649ad7e
|
3 |
+
size 87525
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-06_Qualifying/track_status_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:719a85ef2dfe39c6c5749b067120394e7e1f0d330aba193844e2be4cb55b4075
|
3 |
+
size 265
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-06_Qualifying/weather_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:116d9f5b85bd707d0a64fc760557d9c819e4c1e05eda5b990babccd2171c6dc0
|
3 |
+
size 5749
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/car_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1878ad869dca1b788af4d6c0b9479cf0864bf41b947535b4f091680925ebe13d
|
3 |
+
size 41347817
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/driver_info.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:af76d4761c00111f1ef8f7dde18756d1d73fbe1d9d8cad2e271e6b0c2ed0f42f
|
3 |
+
size 5247
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/lap_count.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:23b361822a4bf963a5547cd0e120a2960ef83b26cd3472513a97485c9bc8071f
|
3 |
+
size 1181
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/position_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2799db0e0a789734cdafbe1c1835f7464980c9c811df55df3277a596de512652
|
3 |
+
size 39888941
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/race_control_messages.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1a9421ecaf1e1ea20834afb886e7770c308f5f94469315b97c8806fbc7ea539d
|
3 |
+
size 3718
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/session_status_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b45274826fdf4fbc3369a296feb0cef42ad60984d2c84f4c5ea5a26966313e4a
|
3 |
+
size 216
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/timing_app_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1c3baeca4349378a0072d998e270400796a0aa12988477e333079e0812adac63
|
3 |
+
size 100793
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/timing_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e94c7c838aaef7442d2509acd97745f6a5fc31b6050fb7e39c1a68448440711d
|
3 |
+
size 1177467
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/track_status_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e29af7bfe3837cf371b238b856c93b0430c936da7d1b60275f0699f4921891c6
|
3 |
+
size 241
|
cache/2023/2023-05-07_Miami_Grand_Prix/2023-05-07_Race/weather_data.ff1pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f89ab4ba1ace29203d9787cea2973b143543f18045fa06c80a54523c53cd86c6
|
3 |
+
size 10088
|
cache/fastf1_http_cache.sqlite
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:44fa52e250a4f456d50a8b10e46756687572f622ef2c8dc1c2d6646688b9b1a2
|
3 |
+
size 287285248
|