Update app.py
Browse files
app.py
CHANGED
@@ -1,19 +1,32 @@
|
|
1 |
import warnings
|
2 |
warnings.filterwarnings("ignore")
|
|
|
3 |
import os
|
4 |
import re
|
5 |
-
import
|
6 |
-
import numpy as np
|
7 |
-
import torchaudio
|
8 |
import webrtcvad
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
from transformers import pipeline
|
10 |
from transformers import AutoProcessor
|
11 |
from pyctcdecode import build_ctcdecoder
|
12 |
from transformers import Wav2Vec2ProcessorWithLM
|
|
|
13 |
from text2int import text_to_int
|
14 |
from isNumber import is_number
|
|
|
|
|
15 |
from processDoubles import process_doubles
|
16 |
from replaceWords import replace_words
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
transcriber_hindi_new = pipeline(task="automatic-speech-recognition", model="cdactvm/w2v-bert-2.0-hindi_new")
|
19 |
transcriber_hindi_old = pipeline(task="automatic-speech-recognition", model="cdactvm/huggingface-hindi_model")
|
|
|
1 |
import warnings
|
2 |
warnings.filterwarnings("ignore")
|
3 |
+
|
4 |
import os
|
5 |
import re
|
6 |
+
import librosa
|
|
|
|
|
7 |
import webrtcvad
|
8 |
+
import nbimporter
|
9 |
+
import torchaudio
|
10 |
+
import numpy as np
|
11 |
+
import gradio as gr
|
12 |
+
import scipy.signal
|
13 |
+
import soundfile as sf
|
14 |
from transformers import pipeline
|
15 |
from transformers import AutoProcessor
|
16 |
from pyctcdecode import build_ctcdecoder
|
17 |
from transformers import Wav2Vec2ProcessorWithLM
|
18 |
+
|
19 |
from text2int import text_to_int
|
20 |
from isNumber import is_number
|
21 |
+
from Text2List import text_to_list
|
22 |
+
from convert2list import convert_to_list
|
23 |
from processDoubles import process_doubles
|
24 |
from replaceWords import replace_words
|
25 |
+
from applyVad import apply_vad
|
26 |
+
from wienerFilter import wiener_filter
|
27 |
+
from highPassFilter import high_pass_filter
|
28 |
+
|
29 |
+
|
30 |
|
31 |
transcriber_hindi_new = pipeline(task="automatic-speech-recognition", model="cdactvm/w2v-bert-2.0-hindi_new")
|
32 |
transcriber_hindi_old = pipeline(task="automatic-speech-recognition", model="cdactvm/huggingface-hindi_model")
|