Update README.md
Browse files
README.md
CHANGED
|
@@ -46,7 +46,7 @@ from transformers import pipeline
|
|
| 46 |
import librosa
|
| 47 |
|
| 48 |
# Initialize the ASR pipeline
|
| 49 |
-
asr = pipeline("automatic-speech-recognition", model="
|
| 50 |
|
| 51 |
# Load audio file (16kHz recommended)
|
| 52 |
audio, sr = librosa.load("your_hausa_audio.wav", sr=16000)
|
|
@@ -65,7 +65,7 @@ import librosa
|
|
| 65 |
|
| 66 |
# Load model and processor
|
| 67 |
processor = WhisperProcessor.from_pretrained("NCAIR-NG/Hausa")
|
| 68 |
-
model = WhisperForConditionalGeneration.from_pretrained("
|
| 69 |
|
| 70 |
# Process audio
|
| 71 |
audio, sr = librosa.load("audio_file.wav", sr=16000)
|
|
@@ -126,7 +126,7 @@ For domain-specific applications, this model can be further fine-tuned:
|
|
| 126 |
from transformers import WhisperForConditionalGeneration, Seq2SeqTrainer
|
| 127 |
|
| 128 |
# Load base model
|
| 129 |
-
model = WhisperForConditionalGeneration.from_pretrained("
|
| 130 |
|
| 131 |
# Fine-tune with your domain-specific Hausa data
|
| 132 |
# Recommended: 10-20 hours of high-quality domain audio
|
|
@@ -147,7 +147,7 @@ model = WhisperForConditionalGeneration.from_pretrained("NCAIR-NG/Hausa")
|
|
| 147 |
author={Awarri Technologies},
|
| 148 |
year={2025},
|
| 149 |
howpublished={Hugging Face Model Hub},
|
| 150 |
-
url={https://huggingface.co/
|
| 151 |
}
|
| 152 |
```
|
| 153 |
|
|
|
|
| 46 |
import librosa
|
| 47 |
|
| 48 |
# Initialize the ASR pipeline
|
| 49 |
+
asr = pipeline("automatic-speech-recognition", model="NCAIR1/Hausa-ASR")
|
| 50 |
|
| 51 |
# Load audio file (16kHz recommended)
|
| 52 |
audio, sr = librosa.load("your_hausa_audio.wav", sr=16000)
|
|
|
|
| 65 |
|
| 66 |
# Load model and processor
|
| 67 |
processor = WhisperProcessor.from_pretrained("NCAIR-NG/Hausa")
|
| 68 |
+
model = WhisperForConditionalGeneration.from_pretrained("NCAIR1/Hausa-ASR")
|
| 69 |
|
| 70 |
# Process audio
|
| 71 |
audio, sr = librosa.load("audio_file.wav", sr=16000)
|
|
|
|
| 126 |
from transformers import WhisperForConditionalGeneration, Seq2SeqTrainer
|
| 127 |
|
| 128 |
# Load base model
|
| 129 |
+
model = WhisperForConditionalGeneration.from_pretrained("NCAIR1/Hausa-ASR")
|
| 130 |
|
| 131 |
# Fine-tune with your domain-specific Hausa data
|
| 132 |
# Recommended: 10-20 hours of high-quality domain audio
|
|
|
|
| 147 |
author={Awarri Technologies},
|
| 148 |
year={2025},
|
| 149 |
howpublished={Hugging Face Model Hub},
|
| 150 |
+
url={https://huggingface.co/NCAIR1/Hausa-ASR}
|
| 151 |
}
|
| 152 |
```
|
| 153 |
|