RealSanjay commited on
Commit
7be1aca
·
verified ·
1 Parent(s): 17dc2a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ class WebAITranscriber:
17
  # Initialize Whisper Model with optimized settings
18
  print(f"Initializing Whisper Model on {self.device}...")
19
  self.model = WhisperModel(
20
- model_size="base", # Using base model for better speed/accuracy balance
21
  device=self.device,
22
  compute_type=self.compute_type,
23
  cpu_threads=min(os.cpu_count(), 4), # Optimized thread count
 
17
  # Initialize Whisper Model with optimized settings
18
  print(f"Initializing Whisper Model on {self.device}...")
19
  self.model = WhisperModel(
20
+ "base", # Fixed: Directly specify the model size as a string
21
  device=self.device,
22
  compute_type=self.compute_type,
23
  cpu_threads=min(os.cpu_count(), 4), # Optimized thread count