nelanbu commited on
Commit
4751517
1 Parent(s): 62b09b4

some fixes

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. requirements.txt +2 -1
app.py CHANGED
@@ -12,6 +12,7 @@ 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
  device_map="auto")
16
 
17
  def transcribe(audio_input, link_input, lang):
 
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):
requirements.txt CHANGED
@@ -4,4 +4,5 @@ transformers
4
  gTTS
5
  deep-translator
6
  httpx==0.24.1
7
- pytube
 
 
4
  gTTS
5
  deep-translator
6
  httpx==0.24.1
7
+ pytube
8
+ accelerate