vumichien commited on
Commit
c41d79a
1 Parent(s): 483dfcc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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")