awacke1 commited on
Commit
0dfad1a
·
verified ·
1 Parent(s): 1938d64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
app.py CHANGED
@@ -633,21 +633,17 @@ def display_file_history_in_sidebar():
633
  col1, col4 = st.sidebar.columns(2)
634
  with col1:
635
  if st.button("🗑 Delete All"):
636
- for f in all_md:
637
- os.remove(f)
638
- for f in all_mp3:
639
- os.remove(f)
640
- for f in all_wav:
641
  os.remove(f)
642
  st.session_state.should_rerun = True
643
  if st.button("🗑 Delete All MD"):
644
- for f in all_md:
645
  os.remove(f)
646
  st.session_state.should_rerun = True
647
  if st.button("🗑 Delete All MP3"):
648
- for f in all_mp3:
649
  os.remove(f)
650
- for f in all_wav:
651
  os.remove(f)
652
  st.session_state.should_rerun = True
653
  with col4:
 
633
  col1, col4 = st.sidebar.columns(2)
634
  with col1:
635
  if st.button("🗑 Delete All"):
636
+ for f in all_files:
 
 
 
 
637
  os.remove(f)
638
  st.session_state.should_rerun = True
639
  if st.button("🗑 Delete All MD"):
640
+ for f in md_files:
641
  os.remove(f)
642
  st.session_state.should_rerun = True
643
  if st.button("🗑 Delete All MP3"):
644
+ for f in mp3_files:
645
  os.remove(f)
646
+ for f in wav_files:
647
  os.remove(f)
648
  st.session_state.should_rerun = True
649
  with col4: