Add auto append text for punctuation
This commit is contained in:
parent
e31f6587ee
commit
938b5eff70
3 changed files with 14 additions and 5 deletions
|
|
@ -14,7 +14,6 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
import argparse
|
||||
import asyncio
|
||||
import io
|
||||
import logging
|
||||
import threading
|
||||
|
|
@ -131,9 +130,7 @@ def do_synthesis_proc(args: argparse.Namespace, request_queue: Queue):
|
|||
_LOGGER.exception("Error during inference")
|
||||
|
||||
# Signal error on main loop
|
||||
item.loop.call_soon_threadsafe(
|
||||
item.future.set_exception, e
|
||||
)
|
||||
item.loop.call_soon_threadsafe(item.future.set_exception, e)
|
||||
|
||||
except Exception:
|
||||
_LOGGER.exception("Unexpected error in inference thread")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue