Anurag commited on
Commit
b51c9d7
·
1 Parent(s): 5f25d68

pool changes

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -268,7 +268,8 @@ class TextToSpeechServicer(text_to_speech_pb2_grpc.TextToSpeechServiceServicer):
268
  try:
269
  loop = asyncio.get_running_loop()
270
  result = await loop.run_in_executor(
271
- None, lambda: _fw_transcribe_block(audio_float)
 
272
  )
273
  # result = await safe_transcribe(audio_float)
274
  except Exception as e:
 
268
  try:
269
  loop = asyncio.get_running_loop()
270
  result = await loop.run_in_executor(
271
+ transcription_pool, lambda: _fw_transcribe_block(
272
+ audio_float)
273
  )
274
  # result = await safe_transcribe(audio_float)
275
  except Exception as e: