Spaces:
Sleeping
Sleeping
Update run_analysis_loop to remove call to utils
Browse files
state.py
CHANGED
|
@@ -526,8 +526,7 @@ def run_analysis_loop(file_names, file_paths_dict, pipeline):
|
|
| 526 |
load_annotation_file(fname, fpath)
|
| 527 |
else:
|
| 528 |
with st.spinner(f"Processing Audio {i+1}/{totalFiles}"):
|
| 529 |
-
annotations, totalSeconds, waveform, sample_rate =
|
| 530 |
-
fpath, pipeline
|
| 531 |
)
|
| 532 |
st.session_state.results[fname] = (annotations, totalSeconds)
|
| 533 |
st.session_state.summaries[fname] = {}
|
|
|
|
| 526 |
load_annotation_file(fname, fpath)
|
| 527 |
else:
|
| 528 |
with st.spinner(f"Processing Audio {i+1}/{totalFiles}"):
|
| 529 |
+
annotations, totalSeconds, waveform, sample_rate = pipeline(fpath)
|
|
|
|
| 530 |
)
|
| 531 |
st.session_state.results[fname] = (annotations, totalSeconds)
|
| 532 |
st.session_state.summaries[fname] = {}
|