Spaces:
Running
Running
Merge pull request #318 from jhj0517/fix/cudnn-problem
Browse files
modules/whisper/insanely_fast_whisper_inference.py
CHANGED
@@ -78,7 +78,8 @@ class InsanelyFastWhisperInference(WhisperBase):
|
|
78 |
kwargs = {
|
79 |
"no_speech_threshold": params.no_speech_threshold,
|
80 |
"temperature": params.temperature,
|
81 |
-
"compression_ratio_threshold": params.compression_ratio_threshold
|
|
|
82 |
}
|
83 |
|
84 |
if self.current_model_size.endswith(".en"):
|
|
|
78 |
kwargs = {
|
79 |
"no_speech_threshold": params.no_speech_threshold,
|
80 |
"temperature": params.temperature,
|
81 |
+
"compression_ratio_threshold": params.compression_ratio_threshold,
|
82 |
+
"logprob_threshold": params.log_prob_threshold,
|
83 |
}
|
84 |
|
85 |
if self.current_model_size.endswith(".en"):
|
requirements.txt
CHANGED
@@ -2,14 +2,15 @@
|
|
2 |
# If you're using it, update url to your CUDA version (CUDA 12.1 is minimum requirement):
|
3 |
# For CUDA 12.1, use : https://download.pytorch.org/whl/cu121
|
4 |
# For CUDA 12.4, use : https://download.pytorch.org/whl/cu124
|
5 |
-
--extra-index-url https://download.pytorch.org/whl/
|
6 |
|
7 |
|
8 |
-
torch
|
|
|
9 |
git+https://github.com/jhj0517/jhj0517-whisper.git
|
10 |
faster-whisper==1.0.3
|
11 |
-
transformers
|
12 |
-
gradio
|
13 |
pytubefix
|
14 |
ruamel.yaml==0.18.6
|
15 |
pyannote.audio==3.3.1
|
|
|
2 |
# If you're using it, update url to your CUDA version (CUDA 12.1 is minimum requirement):
|
3 |
# For CUDA 12.1, use : https://download.pytorch.org/whl/cu121
|
4 |
# For CUDA 12.4, use : https://download.pytorch.org/whl/cu124
|
5 |
+
--extra-index-url https://download.pytorch.org/whl/cu121
|
6 |
|
7 |
|
8 |
+
torch==2.3.1
|
9 |
+
torchaudio==2.3.1
|
10 |
git+https://github.com/jhj0517/jhj0517-whisper.git
|
11 |
faster-whisper==1.0.3
|
12 |
+
transformers
|
13 |
+
gradio
|
14 |
pytubefix
|
15 |
ruamel.yaml==0.18.6
|
16 |
pyannote.audio==3.3.1
|