Rename app.py to _app.py
Browse files- app.py → _app.py +1 -1
app.py → _app.py
RENAMED
@@ -6,7 +6,7 @@ import gradio as gr
|
|
6 |
asr_model = "openai/whisper-tiny.en"
|
7 |
nlp_model = "MoritzLaurer/DeBERTa-v3-base-mnli-fever-anli"
|
8 |
|
9 |
-
pipe = pipeline("automatic-speech-recognition", model=
|
10 |
sampling_rate = pipe.feature_extractor.sampling_rate
|
11 |
|
12 |
chunk_length_s = 10 # how often returns the text
|
|
|
6 |
asr_model = "openai/whisper-tiny.en"
|
7 |
nlp_model = "MoritzLaurer/DeBERTa-v3-base-mnli-fever-anli"
|
8 |
|
9 |
+
pipe = pipeline("automatic-speech-recognition", model=asr_model, device=device)
|
10 |
sampling_rate = pipe.feature_extractor.sampling_rate
|
11 |
|
12 |
chunk_length_s = 10 # how often returns the text
|