Spaces:
Running
on
Zero
Running
on
Zero
Update whisper_cs_dev.py
Browse filesCommented the fake model part
- whisper_cs_dev.py +7 -6
whisper_cs_dev.py
CHANGED
@@ -53,7 +53,8 @@ def load_model(use_v2_fast, device, compute_type):
|
|
53 |
# HACK we need to do this for strange reasons.
|
54 |
# If we don't do this, we get:
|
55 |
#Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory
|
56 |
-
fake_model = whisper_ts.load_model(MODEL_PATH_V2, device=device)
|
|
|
57 |
|
58 |
if DEBUG_MODE: print(f"Exiting load_model function...")
|
59 |
|
@@ -165,11 +166,11 @@ def transcribe_channels(left_waveform, right_waveform, model, use_v2_fast, fake_
|
|
165 |
# HACK we need to do this for strange reasons.
|
166 |
# If we don't do this, we get:
|
167 |
#Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory
|
168 |
-
fake_result = whisper_ts.transcribe(
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
)
|
173 |
|
174 |
if DEBUG_MODE: print(f"Preparing to transcribe...")
|
175 |
|
|
|
53 |
# HACK we need to do this for strange reasons.
|
54 |
# If we don't do this, we get:
|
55 |
#Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory
|
56 |
+
#fake_model = whisper_ts.load_model(MODEL_PATH_V2, device=device)
|
57 |
+
fake_model = None
|
58 |
|
59 |
if DEBUG_MODE: print(f"Exiting load_model function...")
|
60 |
|
|
|
166 |
# HACK we need to do this for strange reasons.
|
167 |
# If we don't do this, we get:
|
168 |
#Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory
|
169 |
+
#fake_result = whisper_ts.transcribe(
|
170 |
+
# fake_model,
|
171 |
+
# FAKE_AUDIO_PATH,
|
172 |
+
# beam_size=1,
|
173 |
+
#)
|
174 |
|
175 |
if DEBUG_MODE: print(f"Preparing to transcribe...")
|
176 |
|