Commit
·
a7af39f
1
Parent(s):
9470cba
Update app.py
Browse files
app.py
CHANGED
|
@@ -212,7 +212,7 @@ def speech_to_text(video_file_path, selected_source_lang, whisper_model, num_spe
|
|
| 212 |
|
| 213 |
# model = whisper.load_model(whisper_model)
|
| 214 |
# model = WhisperModel(whisper_model, device="cuda", compute_type="int8_float16")
|
| 215 |
-
model = WhisperModel(whisper_model, compute_type="
|
| 216 |
time_start = time.time()
|
| 217 |
if(video_file_path == None):
|
| 218 |
raise ValueError("Error no video input")
|
|
|
|
| 212 |
|
| 213 |
# model = whisper.load_model(whisper_model)
|
| 214 |
# model = WhisperModel(whisper_model, device="cuda", compute_type="int8_float16")
|
| 215 |
+
model = WhisperModel(whisper_model, compute_type="float16")
|
| 216 |
time_start = time.time()
|
| 217 |
if(video_file_path == None):
|
| 218 |
raise ValueError("Error no video input")
|