Kr08 commited on
Commit
61f17b6
·
verified ·
1 Parent(s): 65fb837

Update audio_processing.py

Browse files
Files changed (1) hide show
  1. audio_processing.py +5 -2
audio_processing.py CHANGED
@@ -1,11 +1,14 @@
1
  import torch
 
2
  import whisper
 
3
  import numpy as np
4
- import torchaudio as ta
5
  import gradio as gr
 
 
6
  from model_utils import get_processor, get_model, get_whisper_model_small, get_device
7
  from config import SAMPLING_RATE, CHUNK_LENGTH_S
8
- import subprocess
9
 
10
  def resample_with_ffmpeg(input_file, output_file, target_sr=16000):
11
  command = [
 
1
  import torch
2
+ import spaces
3
  import whisper
4
+ import subprocess
5
  import numpy as np
 
6
  import gradio as gr
7
+ import torchaudio as ta
8
+
9
  from model_utils import get_processor, get_model, get_whisper_model_small, get_device
10
  from config import SAMPLING_RATE, CHUNK_LENGTH_S
11
+
12
 
13
  def resample_with_ffmpeg(input_file, output_file, target_sr=16000):
14
  command = [