chuuhtetnaing commited on
Commit
c6d3e92
β€’
1 Parent(s): e2cf0c1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -9
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
- ## Model description
30
 
31
- More information needed
 
 
32
 
33
- ## Intended uses & limitations
 
 
 
 
34
 
35
- More information needed
36
 
37
- ## Training and evaluation data
38
-
39
- More information needed
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