Spaces:
Runtime error
Runtime error
tracinginsights
commited on
Commit
•
8598d58
1
Parent(s):
0171237
Update main.py
Browse files
main.py
CHANGED
@@ -244,7 +244,7 @@ def sessions_available(year: int, event: str | int) -> any:
|
|
244 |
@st.cache_data
|
245 |
@app.get("/{year}/{event}/{session}", response_model=None)
|
246 |
def session_drivers(year: int, event: str | int, session: str) -> any:
|
247 |
-
|
248 |
# get drivers available for a given year, event and session
|
249 |
f1session = fastf1.get_session(year, event, session)
|
250 |
api_path = f1session.api_path
|
|
|
244 |
@st.cache_data
|
245 |
@app.get("/{year}/{event}/{session}", response_model=None)
|
246 |
def session_drivers(year: int, event: str | int, session: str) -> any:
|
247 |
+
fastf1.Cache.enable_cache('cache')
|
248 |
# get drivers available for a given year, event and session
|
249 |
f1session = fastf1.get_session(year, event, session)
|
250 |
api_path = f1session.api_path
|