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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -228,7 +228,8 @@ def speech_to_text(video_file_path, selected_source_lang, whisper_model, num_spe
228
  """
229
 
230
  # model = whisper.load_model(whisper_model)
231
- model = WhisperModel(whisper_model, device="cuda", compute_type="int8_float16")
 
232
  time_start = time.time()
233
  if(video_file_path == None):
234
  raise ValueError("Error no video input")
 
228
  """
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")