chuuhtetnaing
commited on
Commit
β’
c6d3e92
1
Parent(s):
e2cf0c1
Update README.md
Browse files
README.md
CHANGED
@@ -26,19 +26,23 @@ It achieves the following results on the evaluation set:
|
|
26 |
- Loss: 0.1752
|
27 |
- Wer: 54.8976
|
28 |
|
29 |
-
##
|
30 |
|
31 |
-
|
|
|
|
|
32 |
|
33 |
-
|
|
|
|
|
|
|
|
|
34 |
|
35 |
-
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
## Training procedure
|
42 |
|
43 |
### Training hyperparameters
|
44 |
|
|
|
26 |
- Loss: 0.1752
|
27 |
- Wer: 54.8976
|
28 |
|
29 |
+
## Usage
|
30 |
|
31 |
+
```python
|
32 |
+
from datasets import Audio, load_dataset
|
33 |
+
from transformers import pipeline
|
34 |
|
35 |
+
# Load a sample audio
|
36 |
+
dataset = load_dataset("chuuhtetnaing/myanmar-speech-dataset-openslr-80")
|
37 |
+
dataset = dataset.cast_column("audio", Audio(sampling_rate=16000))
|
38 |
+
test_dataset = dataset['test']
|
39 |
+
input_speech = test_dataset[42]['audio']
|
40 |
|
41 |
+
pipe = pipeline(model='chuuhtetnaing/whisper-large-v3-myanmar')
|
42 |
|
43 |
+
output = pipe(input_speech, generate_kwargs={"language": "myanmar", "task": "transcribe"})
|
44 |
+
print(output['text']) # αα»α ααΌααΊα ααΎα¬ ααα¬αααΊ αα±α¬α· α
α¬αα±αΈαα½α² ααα― ααααΊααα« α
α
αΊαααΊ
|
45 |
+
```
|
|
|
|
|
46 |
|
47 |
### Training hyperparameters
|
48 |
|