Spaces:
Running
Running
Update app.py
Browse filesBack to wav2vec2
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/
|
14 |
else:
|
15 |
p = pipeline("automatic-speech-recognition",
|
16 |
-
model="carlosdanielhernandezmena/
|
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):
|