JuanJoseMV commited on
Commit
4a27143
·
1 Parent(s): 196c5ce

add num_workers to model

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -16,7 +16,8 @@ def create_demo():
16
  task="automatic-speech-recognition",
17
  model="openai/whisper-large-v3-turbo",
18
  tokenizer="openai/whisper-large-v3-turbo",
19
- device=device
 
20
  )
21
 
22
  emotion_model = WavLMForSequenceClassification.from_pretrained("links-ads/kk-speech-emotion-recognition")
 
16
  task="automatic-speech-recognition",
17
  model="openai/whisper-large-v3-turbo",
18
  tokenizer="openai/whisper-large-v3-turbo",
19
+ device=device,
20
+ num_workers=-1,
21
  )
22
 
23
  emotion_model = WavLMForSequenceClassification.from_pretrained("links-ads/kk-speech-emotion-recognition")