Lenylvt commited on
Commit
af1960a
·
verified ·
1 Parent(s): 1a80a34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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" # or "cuda" if GPU is available
12
- compute_type = "int8" # Choose the compute type based on your hardware
13
 
14
- model = WhisperModel(model_size=model_size, device=device, compute_type=compute_type)
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