flozi00 commited on
Commit
9727615
·
1 Parent(s): ffb6e62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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-german", feature_extractor = "aware-ai/wav2vec2-xls-r-1b-5gram-german", tokenizer = "aware-ai/wav2vec2-xls-r-1b-5gram-german")
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"]