bugfix
This commit is contained in:
parent
ca507e5a1b
commit
f75a060f2a
@ -41,9 +41,6 @@ class CoquiTTS:
|
||||
|
||||
async def generate(self, text):
|
||||
loop = asyncio.get_event_loop()
|
||||
result = loop.run_in_executor(None, self._generate, text)
|
||||
result = await loop.run_in_executor(None, self._generate, text)
|
||||
return result
|
||||
|
||||
w = asyncio.create_task(self._generate(text))
|
||||
return await asyncio.wait(w)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user