Update README.md
Browse files
README.md
CHANGED
|
@@ -25,21 +25,3 @@ language:
|
|
| 25 |
pipeline_tag: automatic-speech-recognition
|
| 26 |
library_name: transformers
|
| 27 |
---
|
| 28 |
-
|
| 29 |
-
```bash
|
| 30 |
-
pip install -q torch_state_bridge srt webrtcvad torchcodec
|
| 31 |
-
```
|
| 32 |
-
|
| 33 |
-
```python
|
| 34 |
-
from transformers import AutoModel
|
| 35 |
-
model = AutoModel.from_pretrained("shethjenil/Indic-STT", language="hi", trust_remote_code=True, dtype="auto")
|
| 36 |
-
wav , sr = torchaudio.load("audio.wav")
|
| 37 |
-
for i in model.transcribe(wav,sr,4):
|
| 38 |
-
print("".join(i.splitlines()[2::4]).replace("▁"," ").replace("<line>","\n"))
|
| 39 |
-
|
| 40 |
-
```
|
| 41 |
-
|
| 42 |
-
```python
|
| 43 |
-
full_model = AutoModel.from_pretrained("shethjenil/Indic-STT", trust_remote_code=True, dtype="auto")
|
| 44 |
-
full_model.language = "hi"
|
| 45 |
-
```
|
|
|
|
| 25 |
pipeline_tag: automatic-speech-recognition
|
| 26 |
library_name: transformers
|
| 27 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|