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