mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
test
This commit is contained in:
@@ -219,11 +219,16 @@ class Transcriber(commands.Cog):
|
||||
for iter in item.data:
|
||||
logger.info("Iter %s",iter)
|
||||
try:
|
||||
transcript = transcriber.transcribe(iter, config=config)
|
||||
coro = asyncio.to_thread(
|
||||
transcriber.transcribe,
|
||||
iter,
|
||||
config=config
|
||||
)
|
||||
transcript = await coro
|
||||
except Exception as e:
|
||||
logger.warn("Exceptiom occured %s", e)
|
||||
logger.info("Data sent")
|
||||
await self.mc.send(("%s: %s", item.user, transcript.text))
|
||||
await self.mc.send(f"{item.user} : {transcript.text}")
|
||||
if transcript.error:
|
||||
logger.error(transcript.error)
|
||||
raise AssertionError
|
||||
|
||||
Reference in New Issue
Block a user