Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ gcservice_account, client, db = init_conn()
|
|
44 |
|
45 |
percentages_format = {'PG': '{:.2%}', 'SG': '{:.2%}', 'SF': '{:.2%}', 'PF': '{:.2%}', 'C': '{:.2%}'}
|
46 |
|
47 |
-
@st.cache_resource(ttl =
|
48 |
def init_baselines():
|
49 |
collection = db["MLB_Hitters_DB"]
|
50 |
cursor = collection.find() # Finds all documents in the collection
|
|
|
44 |
|
45 |
percentages_format = {'PG': '{:.2%}', 'SG': '{:.2%}', 'SF': '{:.2%}', 'PF': '{:.2%}', 'C': '{:.2%}'}
|
46 |
|
47 |
+
@st.cache_resource(ttl = 599)
|
48 |
def init_baselines():
|
49 |
collection = db["MLB_Hitters_DB"]
|
50 |
cursor = collection.find() # Finds all documents in the collection
|