Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,8 @@ import re
|
|
10 |
#import torchaudio
|
11 |
|
12 |
# Initialize the speech recognition pipeline and transliterator
|
13 |
-
p1 = pipeline(task="automatic-speech-recognition", model="cdactvm/w2v-bert-2.0-odia_v1")
|
14 |
-
odia_model2 = pipeline(task="automatic-speech-recognition", model="cdactvm/w2v-bert-odia_v1")
|
15 |
p2 = pipeline(task="automatic-speech-recognition", model="cdactvm/w2v-bert-2.0-hindi_v1")
|
16 |
punjaib_modle_30000=pipeline(task="automatic-speech-recognition", model="cdactvm/wav2vec-bert-punjabi-30000-model")
|
17 |
punjaib_modle_75000=pipeline(task="automatic-speech-recognition", model="cdactvm/wav2vec-bert-punjabi-75000-model")
|
@@ -33,7 +33,7 @@ processor_with_lm = Wav2Vec2ProcessorWithLM(
|
|
33 |
decoder=decoder
|
34 |
)
|
35 |
processor.feature_extractor._processor_class = "Wav2Vec2ProcessorWithLM"
|
36 |
-
p8 = pipeline("automatic-speech-recognition", model="cdactvm/w2v-assames", tokenizer=processor_with_lm, feature_extractor=processor_with_lm.feature_extractor, decoder=processor_with_lm.decoder)
|
37 |
|
38 |
|
39 |
os.system('git clone https://github.com/irshadbhat/indic-trans.git')
|
|
|
10 |
#import torchaudio
|
11 |
|
12 |
# Initialize the speech recognition pipeline and transliterator
|
13 |
+
#p1 = pipeline(task="automatic-speech-recognition", model="cdactvm/w2v-bert-2.0-odia_v1")
|
14 |
+
#odia_model2 = pipeline(task="automatic-speech-recognition", model="cdactvm/w2v-bert-odia_v1")
|
15 |
p2 = pipeline(task="automatic-speech-recognition", model="cdactvm/w2v-bert-2.0-hindi_v1")
|
16 |
punjaib_modle_30000=pipeline(task="automatic-speech-recognition", model="cdactvm/wav2vec-bert-punjabi-30000-model")
|
17 |
punjaib_modle_75000=pipeline(task="automatic-speech-recognition", model="cdactvm/wav2vec-bert-punjabi-75000-model")
|
|
|
33 |
decoder=decoder
|
34 |
)
|
35 |
processor.feature_extractor._processor_class = "Wav2Vec2ProcessorWithLM"
|
36 |
+
#p8 = pipeline("automatic-speech-recognition", model="cdactvm/w2v-assames", tokenizer=processor_with_lm, feature_extractor=processor_with_lm.feature_extractor, decoder=processor_with_lm.decoder)
|
37 |
|
38 |
|
39 |
os.system('git clone https://github.com/irshadbhat/indic-trans.git')
|