diff options
| author | yum <yum.food.vr@gmail.com> | 2025-05-30 13:32:36 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-05-30 13:34:23 -0700 |
| commit | 7fb9c575aea4d318e9c14b82174d1b323171b62b (patch) | |
| tree | 8f924a32def3bdc963be40e67879887cbac68f08 /app/hi.py | |
| parent | e1b3f638a1ea448de9691f69eb62ebf4c3944c9f (diff) | |
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
Diffstat (limited to 'app/hi.py')
| -rw-r--r-- | app/hi.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |
