radinhas commited on
Commit
e2b2a25
1 Parent(s): 2b34fff

Update apis/chat_api.py

Browse files
Files changed (1) hide show
  1. apis/chat_api.py +1 -1
apis/chat_api.py CHANGED
@@ -350,7 +350,7 @@ async def whisper_transcribe(
350
  pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(language=language, task="transcribe")
351
  file_data = await audio_file.read()
352
  # rv = data.encode('utf-8')
353
- rv = base64.b64encode(file_data)
354
  print(rv, "rvrvrvrvr")
355
  text = pipe(rv)["text"]
356
  time_end = 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.read()
352
  # rv = data.encode('utf-8')
353
+ rv = base64.b64encode(file_data).decode()
354
  print(rv, "rvrvrvrvr")
355
  text = pipe(rv)["text"]
356
  time_end = time.time()