radinhas commited on
Commit
57ddf4b
1 Parent(s): 66fd47e

Update apis/chat_api.py

Browse files
Files changed (1) hide show
  1. apis/chat_api.py +2 -1
apis/chat_api.py CHANGED
@@ -348,7 +348,8 @@ async def whisper_transcribe(
348
  )
349
  time_start = time.time()
350
  pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(language=language, task="transcribe")
351
- file_data = await audio_file.file.read()
 
352
  text = pipe(file_data)["text"]
353
  time_end = time.time()
354
  item_response["status"] = 200
 
348
  )
349
  time_start = time.time()
350
  pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(language=language, task="transcribe")
351
+ #file_data = await audio_file.file.read()
352
+ file_data = audio_file.file.read()
353
  text = pipe(file_data)["text"]
354
  time_end = time.time()
355
  item_response["status"] = 200