hagenw commited on
Commit
6c4d5a1
1 Parent(s): 5705068

Increase audio limit to 2 s

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ import audresample
15
 
16
 
17
  device = 0 if torch.cuda.is_available() else "cpu"
18
- duration = 1 # 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,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 second of the audio is processed.")
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")