Spaces:
Sleeping
Sleeping
Update run_analysis_loop
Browse files
state.py
CHANGED
|
@@ -489,10 +489,7 @@ def load_demo_multi(demo_paths):
|
|
| 489 |
st.session_state.analyzeAllToggle = True
|
| 490 |
|
| 491 |
|
| 492 |
-
def run_analysis_loop(file_names, file_paths_dict, pipeline
|
| 493 |
-
enable_denoise, early_cleanup,
|
| 494 |
-
gain_window, minimum_gain, maximum_gain,
|
| 495 |
-
df_model, df_state, atten_lim_db):
|
| 496 |
"""Process only new (not yet analyzed) files and populate session state."""
|
| 497 |
import time
|
| 498 |
import utils as _utils
|
|
@@ -530,9 +527,7 @@ def run_analysis_loop(file_names, file_paths_dict, pipeline,
|
|
| 530 |
else:
|
| 531 |
with st.spinner(f"Processing Audio {i+1}/{totalFiles}"):
|
| 532 |
annotations, totalSeconds, waveform, sample_rate = _utils.processFile(
|
| 533 |
-
fpath, pipeline
|
| 534 |
-
gain_window, minimum_gain, maximum_gain,
|
| 535 |
-
df_model, df_state, atten_lim_db,
|
| 536 |
)
|
| 537 |
st.session_state.results[fname] = (annotations, totalSeconds)
|
| 538 |
st.session_state.summaries[fname] = {}
|
|
|
|
| 489 |
st.session_state.analyzeAllToggle = True
|
| 490 |
|
| 491 |
|
| 492 |
+
def run_analysis_loop(file_names, file_paths_dict, pipeline):
|
|
|
|
|
|
|
|
|
|
| 493 |
"""Process only new (not yet analyzed) files and populate session state."""
|
| 494 |
import time
|
| 495 |
import utils as _utils
|
|
|
|
| 527 |
else:
|
| 528 |
with st.spinner(f"Processing Audio {i+1}/{totalFiles}"):
|
| 529 |
annotations, totalSeconds, waveform, sample_rate = _utils.processFile(
|
| 530 |
+
fpath, pipeline
|
|
|
|
|
|
|
| 531 |
)
|
| 532 |
st.session_state.results[fname] = (annotations, totalSeconds)
|
| 533 |
st.session_state.summaries[fname] = {}
|