Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -229,7 +229,7 @@ def speech_to_text(video_file_path, selected_source_lang, whisper_model, num_spe
|
|
229 |
|
230 |
# model = whisper.load_model(whisper_model)
|
231 |
# model = WhisperModel(whisper_model, device="cuda", compute_type="int8_float16")
|
232 |
-
model = WhisperModel(whisper_model)
|
233 |
time_start = time.time()
|
234 |
if(video_file_path == None):
|
235 |
raise ValueError("Error no video input")
|
|
|
229 |
|
230 |
# model = whisper.load_model(whisper_model)
|
231 |
# model = WhisperModel(whisper_model, device="cuda", compute_type="int8_float16")
|
232 |
+
model = WhisperModel(whisper_model, compute_type="int8")
|
233 |
time_start = time.time()
|
234 |
if(video_file_path == None):
|
235 |
raise ValueError("Error no video input")
|