Spaces:
Starting on CPU Upgrade
Starting on CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
|
@@ -650,11 +650,18 @@ if st.sidebar.button("Multiple Files Demo"):
|
|
| 650 |
if len(file_names) == 0:
|
| 651 |
st.text("Upload file(s) to enable analysis")
|
| 652 |
else:
|
| 653 |
-
|
| 654 |
-
|
| 655 |
-
|
| 656 |
-
|
| 657 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 658 |
|
| 659 |
if st.session_state.analyzeAllToggle == True:
|
| 660 |
print("Start analyzing")
|
|
|
|
| 650 |
if len(file_names) == 0:
|
| 651 |
st.text("Upload file(s) to enable analysis")
|
| 652 |
else:
|
| 653 |
+
col_analyze, col_spacer, col_reset = st.columns([3, 5, 2])
|
| 654 |
+
with col_analyze:
|
| 655 |
+
if st.button("Analyze All New Audio", key="button_all"):
|
| 656 |
+
if len(file_names) == 0:
|
| 657 |
+
st.error('Upload file(s) first!')
|
| 658 |
+
else:
|
| 659 |
+
st.session_state.analyzeAllToggle = True
|
| 660 |
+
with col_reset:
|
| 661 |
+
if st.button("🗑️ Reset App", key="button_reset", type="secondary", use_container_width=True):
|
| 662 |
+
for key in list(st.session_state.keys()):
|
| 663 |
+
del st.session_state[key]
|
| 664 |
+
st.rerun()
|
| 665 |
|
| 666 |
if st.session_state.analyzeAllToggle == True:
|
| 667 |
print("Start analyzing")
|