Spaces:
Sleeping
Sleeping
RealSanjay
commited on
Update app.py
Browse files
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 |
-
|
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
|