Spaces:
Runtime error
Runtime error
Increase audio limit to 2 s
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ import audresample
|
|
15 |
|
16 |
|
17 |
device = 0 if torch.cuda.is_available() else "cpu"
|
18 |
-
duration =
|
19 |
age_gender_model_name = "audeering/wav2vec2-large-robust-24-ft-age-gender"
|
20 |
expression_model_name = "audeering/wav2vec2-large-robust-12-ft-emotion-msp-dim"
|
21 |
|
@@ -262,7 +262,7 @@ with gr.Blocks() as demo:
|
|
262 |
[input],
|
263 |
label="Examples from CREMA-D, ODbL v1.0 license",
|
264 |
)
|
265 |
-
gr.Markdown("Only the first
|
266 |
submit_btn = gr.Button(value="Submit")
|
267 |
with gr.Column():
|
268 |
output_age = gr.Textbox(label="Age")
|
|
|
15 |
|
16 |
|
17 |
device = 0 if torch.cuda.is_available() else "cpu"
|
18 |
+
duration = 2 # limit processing of audio
|
19 |
age_gender_model_name = "audeering/wav2vec2-large-robust-24-ft-age-gender"
|
20 |
expression_model_name = "audeering/wav2vec2-large-robust-12-ft-emotion-msp-dim"
|
21 |
|
|
|
262 |
[input],
|
263 |
label="Examples from CREMA-D, ODbL v1.0 license",
|
264 |
)
|
265 |
+
gr.Markdown("Only the first two seconds of the audio will be processed.")
|
266 |
submit_btn = gr.Button(value="Submit")
|
267 |
with gr.Column():
|
268 |
output_age = gr.Textbox(label="Age")
|