Spaces:
Runtime error
Runtime error
Commit
·
ca778e1
1
Parent(s):
8f5773e
Update main.py
Browse files
main.py
CHANGED
@@ -27,7 +27,7 @@ async def root():
|
|
27 |
content="""<iframe src="https://tracinginsights-f1-analysis.hf.space" frameborder="0" style="width:100%; height:100%;" scrolling="yes" allowfullscreen:"yes"></iframe>""",
|
28 |
status_code=200)
|
29 |
|
30 |
-
@st.
|
31 |
@app.get("/years", response_model=None)
|
32 |
def years_available() -> any:
|
33 |
# make a list from 2018 to current year
|
|
|
27 |
content="""<iframe src="https://tracinginsights-f1-analysis.hf.space" frameborder="0" style="width:100%; height:100%;" scrolling="yes" allowfullscreen:"yes"></iframe>""",
|
28 |
status_code=200)
|
29 |
|
30 |
+
@st.cache_data(suppress_st_warning=True)
|
31 |
@app.get("/years", response_model=None)
|
32 |
def years_available() -> any:
|
33 |
# make a list from 2018 to current year
|