Spaces:
Running
on
Zero
Running
on
Zero
Update whisper_cs_dev.py
Browse files- whisper_cs_dev.py +5 -3
whisper_cs_dev.py
CHANGED
@@ -1,13 +1,15 @@
|
|
|
|
|
|
1 |
from pydub import AudioSegment
|
2 |
import os
|
3 |
import torchaudio
|
4 |
import torch
|
5 |
import re
|
6 |
-
import whisper_timestamped as whisper_ts
|
7 |
-
from faster_whisper import WhisperModel
|
8 |
-
from settings import DEBUG_MODE, MODEL_PATH_V2_FAST, MODEL_PATH_V2, LEFT_CHANNEL_TEMP_PATH, RIGHT_CHANNEL_TEMP_PATH, FAKE_AUDIO_PATH, RESAMPLING_FREQ
|
9 |
import time
|
10 |
|
|
|
|
|
|
|
11 |
def get_settings():
|
12 |
|
13 |
if DEBUG_MODE: print(f"Entering get_settings function...")
|
|
|
1 |
+
from faster_whisper import WhisperModel
|
2 |
+
import whisper_timestamped as whisper_ts
|
3 |
from pydub import AudioSegment
|
4 |
import os
|
5 |
import torchaudio
|
6 |
import torch
|
7 |
import re
|
|
|
|
|
|
|
8 |
import time
|
9 |
|
10 |
+
from settings import DEBUG_MODE, MODEL_PATH_V2_FAST, MODEL_PATH_V2, LEFT_CHANNEL_TEMP_PATH, RIGHT_CHANNEL_TEMP_PATH, FAKE_AUDIO_PATH, RESAMPLING_FREQ
|
11 |
+
|
12 |
+
|
13 |
def get_settings():
|
14 |
|
15 |
if DEBUG_MODE: print(f"Entering get_settings function...")
|