yashm commited on
Commit
7a556c7
·
verified ·
1 Parent(s): 370c8ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -158,7 +158,7 @@ def main():
158
  df = pd.DataFrame() # Initialize an empty DataFrame
159
 
160
  if uploaded_file is not None:
161
- @st.cache # Use the correct caching decorator
162
  def load_data(uploaded_file):
163
  return pd.read_csv(uploaded_file)
164
  df = load_data(uploaded_file)
 
158
  df = pd.DataFrame() # Initialize an empty DataFrame
159
 
160
  if uploaded_file is not None:
161
+ @st.cache_data # Use the correct caching decorator
162
  def load_data(uploaded_file):
163
  return pd.read_csv(uploaded_file)
164
  df = load_data(uploaded_file)