Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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
|
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
|
645 |
os.remove(f)
|
646 |
st.session_state.should_rerun = True
|
647 |
if st.button("🗑 Delete All MP3"):
|
648 |
-
for f in
|
649 |
os.remove(f)
|
650 |
-
for f in
|
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:
|