Spaces:
Running
on
T4
Running
on
T4
Hervé BREDIN
commited on
Commit
·
692ae06
1
Parent(s):
3c86343
feat: switch to 2 minutes
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def to_base64(waveform: np.ndarray, sample_rate: int = 16000) -> Text:
|
|
47 |
|
48 |
|
49 |
PYANNOTE_LOGO = "https://avatars.githubusercontent.com/u/7559051?s=400&v=4"
|
50 |
-
EXCERPT =
|
51 |
|
52 |
st.set_page_config(page_title="pyannote pretrained pipelines", page_icon=PYANNOTE_LOGO)
|
53 |
|
@@ -101,7 +101,7 @@ if uploaded_file is not None:
|
|
101 |
uri = "".join(uploaded_file.name.split())
|
102 |
file = {"waveform": waveform, "sample_rate": sample_rate, "uri": uri}
|
103 |
|
104 |
-
with st.spinner(f"Processing {EXCERPT:g} seconds..."):
|
105 |
output = pipeline(file)
|
106 |
|
107 |
with open("assets/template.html") as html, open("assets/style.css") as css:
|
|
|
47 |
|
48 |
|
49 |
PYANNOTE_LOGO = "https://avatars.githubusercontent.com/u/7559051?s=400&v=4"
|
50 |
+
EXCERPT = 120.0
|
51 |
|
52 |
st.set_page_config(page_title="pyannote pretrained pipelines", page_icon=PYANNOTE_LOGO)
|
53 |
|
|
|
101 |
uri = "".join(uploaded_file.name.split())
|
102 |
file = {"waveform": waveform, "sample_rate": sample_rate, "uri": uri}
|
103 |
|
104 |
+
with st.spinner(f"Processing first {EXCERPT:g} seconds of the file..."):
|
105 |
output = pipeline(file)
|
106 |
|
107 |
with open("assets/template.html") as html, open("assets/style.css") as css:
|