Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,
|
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):
|