some fixes
Browse files
app.py
CHANGED
@@ -10,10 +10,11 @@ from pytube import YouTube
|
|
10 |
|
11 |
pipe = pipeline(
|
12 |
"automatic-speech-recognition",
|
13 |
-
model="nelanbu/ID2223_Lab2_Whisper",
|
14 |
-
chunk_length_s=
|
15 |
batch_size=16,
|
16 |
-
|
|
|
17 |
|
18 |
def transcribe(audio_input, link_input, lang):
|
19 |
try:
|
|
|
10 |
|
11 |
pipe = pipeline(
|
12 |
"automatic-speech-recognition",
|
13 |
+
model="nelanbu/ID2223_Lab2_Whisper",
|
14 |
+
chunk_length_s=30,
|
15 |
batch_size=16,
|
16 |
+
stride_length_s=(4, 2),
|
17 |
+
device_map="auto")
|
18 |
|
19 |
def transcribe(audio_input, link_input, lang):
|
20 |
try:
|