awacke1 commited on
Commit
08d0a41
Β·
1 Parent(s): 8d60103

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -141,6 +141,11 @@ if submitted:
141
  st.success(f'πŸ“ˆ Additional Daily Calorie Burn from Muscle Gain: {additional_calories:.2f} kcal/day')
142
 
143
 
 
 
 
 
 
144
  # Display history
145
  st.sidebar.header('πŸ“š History')
146
  for file in load_history():
 
141
  st.success(f'πŸ“ˆ Additional Daily Calorie Burn from Muscle Gain: {additional_calories:.2f} kcal/day')
142
 
143
 
144
+ # Load history
145
+ def load_history():
146
+ files = [f for f in os.listdir('.') if f.startswith('data_')]
147
+ return files
148
+
149
  # Display history
150
  st.sidebar.header('πŸ“š History')
151
  for file in load_history():