Anurag
commited on
Commit
·
b51c9d7
1
Parent(s):
5f25d68
pool changes
Browse files
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 |
-
|
|
|
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:
|