nelanbu commited on
Commit
4ccb2e7
1 Parent(s): 4751517

some fixes

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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", # change to "your-username/the-name-you-picked"
14
- chunk_length_s=10,
15
  batch_size=16,
16
- device_map="auto")
 
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: