Spaces:
Runtime error
Runtime error
RikeshSilwal
commited on
Commit
•
5877ac2
1
Parent(s):
d7068bb
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,11 @@ from sklearn.model_selection import train_test_split
|
|
9 |
|
10 |
|
11 |
|
12 |
-
processor = Wav2Vec2Processor.from_pretrained("RikeshSilwal/wav2vec2-nepali")
|
13 |
-
model = Wav2Vec2ForCTC.from_pretrained("RikeshSilwal/wav2vec2-nepali")
|
|
|
|
|
|
|
14 |
|
15 |
from torchaudio.transforms import Resample
|
16 |
import numpy as np
|
|
|
9 |
|
10 |
|
11 |
|
12 |
+
# processor = Wav2Vec2Processor.from_pretrained("RikeshSilwal/wav2vec2-nepali")
|
13 |
+
# model = Wav2Vec2ForCTC.from_pretrained("RikeshSilwal/wav2vec2-nepali")
|
14 |
+
|
15 |
+
processor = Wav2Vec2Processor.from_pretrained("gagan3012/wav2vec2-xlsr-nepali")
|
16 |
+
model = Wav2Vec2ForCTC.from_pretrained("gagan3012/wav2vec2-xlsr-nepali")
|
17 |
|
18 |
from torchaudio.transforms import Resample
|
19 |
import numpy as np
|