From 7fb9c575aea4d318e9c14b82174d1b323171b62b Mon Sep 17 00:00:00 2001 From: yum Date: Fri, 30 May 2025 13:32:36 -0700 Subject: More stuff - fix unicode output from python terminal - fix cpu inference - add filters - add beam search params to UI - DRY up config definition in UI --- app/hi.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/hi.py') diff --git a/app/hi.py b/app/hi.py index e6877ff..bab0fd4 100644 --- a/app/hi.py +++ b/app/hi.py @@ -1,5 +1,6 @@ import app_config import argparse +import io from math import floor, ceil import msvcrt import os @@ -11,6 +12,9 @@ import sys import threading import time +sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8') +sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding='utf-8') + TESTS_ENABLED = True # 0 = quiet, 1 = verbose, 2 = very verbose -- cgit v1.2.3