Spaces:
Running
Running
James McCool
commited on
Commit
·
b966d2c
1
Parent(s):
f35299f
Refactor caching mechanism in app.py by removing the TTL parameter from the @st .cache_data decorator. This change simplifies the caching behavior for simulated statistics, ensuring data is cached without a time limit, which may improve performance during repeated simulations.
Browse files
app.py
CHANGED
@@ -130,7 +130,7 @@ with st.sidebar:
|
|
130 |
key=f"deaths_{game_num}"
|
131 |
))
|
132 |
|
133 |
-
@st.cache_data(
|
134 |
def simulate_stats(row, num_sims=1000):
|
135 |
"""Simulate stats using normal distribution"""
|
136 |
# Using coefficient of variation of 0.3 to generate reasonable standard deviations
|
|
|
130 |
key=f"deaths_{game_num}"
|
131 |
))
|
132 |
|
133 |
+
@st.cache_data()
|
134 |
def simulate_stats(row, num_sims=1000):
|
135 |
"""Simulate stats using normal distribution"""
|
136 |
# Using coefficient of variation of 0.3 to generate reasonable standard deviations
|