mclemcrew commited on
Commit
52b6e15
1 Parent(s): c05e838

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -82,7 +82,7 @@ def play_recomm():
82
  if 'rs' in st.session_state:
83
  del st.session_state.rs,st.session_state.err
84
  try:
85
- if len(pd.read_csv('../data/new_tracks.csv')) >= 200:
86
  with st.spinner('Updating the dataset...'):
87
  x=update_dataset()
88
  st.success('{} New tracks were added to the dataset.'.format(x))
@@ -354,7 +354,7 @@ def Log_page():
354
  if log == True:
355
  if 'err' in st.session_state:
356
  st.write(st.session_state.err)
357
- with open('../data/streamlit.csv') as f:
358
  st.download_button('Download Dataset', f,file_name='streamlit.csv')
359
  def About_page():
360
  st.header('Development')
 
82
  if 'rs' in st.session_state:
83
  del st.session_state.rs,st.session_state.err
84
  try:
85
+ if len(pd.read_csv('data/new_tracks.csv')) >= 200:
86
  with st.spinner('Updating the dataset...'):
87
  x=update_dataset()
88
  st.success('{} New tracks were added to the dataset.'.format(x))
 
354
  if log == True:
355
  if 'err' in st.session_state:
356
  st.write(st.session_state.err)
357
+ with open('data/streamlit.csv') as f:
358
  st.download_button('Download Dataset', f,file_name='streamlit.csv')
359
  def About_page():
360
  st.header('Development')