Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
|
4 |
-
p = pipeline("automatic-speech-recognition", model="aware-ai/wav2vec2-base-
|
5 |
|
6 |
def transcribe(audio):
|
7 |
return p(audio, chunk_length_s=10, stride_length_s=(4, 2))["text"]
|
|
|
1 |
from transformers import pipeline
|
2 |
import gradio as gr
|
3 |
|
4 |
+
p = pipeline("automatic-speech-recognition", model="aware-ai/wav2vec2-base-5gram-german")
|
5 |
|
6 |
def transcribe(audio):
|
7 |
return p(audio, chunk_length_s=10, stride_length_s=(4, 2))["text"]
|