BenDaouda commited on
Commit
2647c46
·
1 Parent(s): bf96a3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ token = "vhf_IwkuGBEkyipKSnyJzJcCRSwOSJDvNivOmH"
9
 
10
  # Chargez le modèle et le tokenizer en utilisant le jeton d'authentification
11
  tokenizer = AutoTokenizer.from_pretrained(model_name, use_auth_token=True)
12
- model = pipeline("automatic-speech-recognition", model=model_name, tokenizer=tokenizer, task="asr", use_auth_token=True)
13
 
14
  # Utilisez la fonction Gradio avec votre modèle chargé
15
  def transcribe(audio):
 
9
 
10
  # Chargez le modèle et le tokenizer en utilisant le jeton d'authentification
11
  tokenizer = AutoTokenizer.from_pretrained(model_name, use_auth_token=True)
12
+ model = pipeline("automatic-speech-recognition", model=model_name, tokenizer=tokenizer, use_auth_token=True)
13
 
14
  # Utilisez la fonction Gradio avec votre modèle chargé
15
  def transcribe(audio):