Hervé Bredin
commited on
Commit
·
317657b
1
Parent(s):
56a16bc
fix: remove spaces from "uri" for RTTM dumps
Browse files
app.py
CHANGED
@@ -83,7 +83,8 @@ if uploaded_file is not None:
|
|
83 |
waveform, sample_rate = audio.crop(
|
84 |
uploaded_file, Segment(0, min(duration, EXCERPT))
|
85 |
)
|
86 |
-
|
|
|
87 |
|
88 |
with st.spinner(f"Processing first {EXCERPT:g} seconds..."):
|
89 |
output = pipeline(file)
|
|
|
83 |
waveform, sample_rate = audio.crop(
|
84 |
uploaded_file, Segment(0, min(duration, EXCERPT))
|
85 |
)
|
86 |
+
uri = "".join(uploaded_file.name.split())
|
87 |
+
file = {"waveform": waveform, "sample_rate": sample_rate, "uri": uri}
|
88 |
|
89 |
with st.spinner(f"Processing first {EXCERPT:g} seconds..."):
|
90 |
output = pipeline(file)
|