lang-model/naive-nlu/depth_meter.py

6 lines
174 B
Python
Raw Normal View History

import sys
def show_depth(depth: int):
sys.stdout.write("\r\x1b[K" + (u'' * int(depth / 2)) + (u'' * int(depth % 2)) + "\x1b[7m \x1b[0m\b")
sys.stdout.flush()