Manjot Singh commited on
Commit
9365171
·
1 Parent(s): 7496ccb

requirements change_5

Browse files
Files changed (1) hide show
  1. audio_processing.py +2 -2
audio_processing.py CHANGED
@@ -11,7 +11,7 @@ import time
11
  from difflib import SequenceMatcher
12
  hf_token = os.getenv("HF_TOKEN")
13
 
14
- CHUNK_LENGTH=10
15
  OVERLAP=0
16
  import whisperx
17
  import torch
@@ -32,7 +32,7 @@ def preprocess_audio(audio, chunk_size=CHUNK_LENGTH*16000, overlap=OVERLAP*16000
32
  chunks.append(chunk)
33
  return chunks
34
 
35
- @spaces.GPU(duration=120)
36
  def process_audio(audio_file, translate=False, model_size="small"):
37
  start_time = time.time()
38
 
 
11
  from difflib import SequenceMatcher
12
  hf_token = os.getenv("HF_TOKEN")
13
 
14
+ CHUNK_LENGTH=5
15
  OVERLAP=0
16
  import whisperx
17
  import torch
 
32
  chunks.append(chunk)
33
  return chunks
34
 
35
+ @spaces.GPU(duration=40)
36
  def process_audio(audio_file, translate=False, model_size="small"):
37
  start_time = time.time()
38