Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,10 +8,10 @@ logging.getLogger("faster_whisper").setLevel(logging.DEBUG)
|
|
8 |
|
9 |
# Initialize the Whisper model with your desired configuration
|
10 |
model_size = "large-v3" # Choose the model size
|
11 |
-
device = "cpu" #
|
12 |
-
compute_type = "int8" #
|
13 |
|
14 |
-
model = WhisperModel(model_size
|
15 |
|
16 |
def transcribe(audio_file):
|
17 |
# Enable word-level timestamps
|
|
|
8 |
|
9 |
# Initialize the Whisper model with your desired configuration
|
10 |
model_size = "large-v3" # Choose the model size
|
11 |
+
device = "cpu" # GPU : cuda CPU : cpu
|
12 |
+
compute_type = "int8" # GPU : float16 or int8 - CPU : int8
|
13 |
|
14 |
+
model = WhisperModel(model_size, device=device, compute_type=compute_type)
|
15 |
|
16 |
def transcribe(audio_file):
|
17 |
# Enable word-level timestamps
|