barbaroo commited on
Commit
a4f93b2
1 Parent(s): 1dd0509

Update app.py

Browse files

Back to wav2vec2

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,10 +10,10 @@ use_gpu = torch.cuda.is_available()
10
  # Configure the pipeline to use the GPU if available
11
  if use_gpu:
12
  p = pipeline("automatic-speech-recognition",
13
- model="carlosdanielhernandezmena/whisper-base-faroese-8k-steps-100h", device=0)
14
  else:
15
  p = pipeline("automatic-speech-recognition",
16
- model="carlosdanielhernandezmena/whisper-base-faroese-8k-steps-100h", chunk_length_s= 50)
17
 
18
 
19
  def transcribe(audio, state="", uploaded_audio=None):
 
10
  # Configure the pipeline to use the GPU if available
11
  if use_gpu:
12
  p = pipeline("automatic-speech-recognition",
13
+ model="carlosdanielhernandezmena/wav2vec2-large-xlsr-53-faroese-100h", device=0)
14
  else:
15
  p = pipeline("automatic-speech-recognition",
16
+ model="carlosdanielhernandezmena/wav2vec2-large-xlsr-53-faroese-100h")
17
 
18
 
19
  def transcribe(audio, state="", uploaded_audio=None):