Spaces:
Runtime error
Runtime error
adiharel30
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import faster_whisper
|
|
9 |
app = FastAPI()
|
10 |
|
11 |
# Initialize the model with GPU support
|
12 |
-
model = faster_whisper.WhisperModel('ivrit-ai/faster-whisper-v2-d4', device="
|
13 |
|
14 |
# Define file paths
|
15 |
TEMP_FILE_PATH = "temp_audio_file.m4a"
|
|
|
9 |
app = FastAPI()
|
10 |
|
11 |
# Initialize the model with GPU support
|
12 |
+
model = faster_whisper.WhisperModel('ivrit-ai/faster-whisper-v2-d4', device="cpu", compute_type="float32")
|
13 |
|
14 |
# Define file paths
|
15 |
TEMP_FILE_PATH = "temp_audio_file.m4a"
|