Spaces:
Sleeping
Sleeping
Aboubacar OUATTARA - kaira
commited on
Commit
·
010ad6d
1
Parent(s):
740f4bc
switch to first training step 900
Browse files
app.py
CHANGED
@@ -13,11 +13,12 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
13 |
|
14 |
# Define the model checkpoint and language
|
15 |
model_checkpoint = "oza75/whisper-bambara-asr-002"
|
|
|
16 |
language = "bambara"
|
17 |
|
18 |
# Load the custom tokenizer designed for Bambara and the ASR model
|
19 |
tokenizer = BambaraWhisperTokenizer.from_pretrained(model_checkpoint, language=language, device=device)
|
20 |
-
pipe = pipeline(model=model_checkpoint, tokenizer=tokenizer, device=device)
|
21 |
|
22 |
|
23 |
@spaces.GPU()
|
|
|
13 |
|
14 |
# Define the model checkpoint and language
|
15 |
model_checkpoint = "oza75/whisper-bambara-asr-002"
|
16 |
+
revision = "7f81e01332600196152f043f132c7ddf936b600a"
|
17 |
language = "bambara"
|
18 |
|
19 |
# Load the custom tokenizer designed for Bambara and the ASR model
|
20 |
tokenizer = BambaraWhisperTokenizer.from_pretrained(model_checkpoint, language=language, device=device)
|
21 |
+
pipe = pipeline(model=model_checkpoint, tokenizer=tokenizer, device=device, revision=revision)
|
22 |
|
23 |
|
24 |
@spaces.GPU()
|