def write()

in dial-docker-compose/ollama/ollama_setup/utils.py [0:0]


    def write(cls, s: str):
        # NOTE: every tqdm progress bar update is deliberately ended with "\n",
        # otherwise one wouldn't see the bar running in console upon running `docker compose up`.
        if s in ["\n", ""]:
            return
        print(s.strip(), file=sys.stderr, flush=True, end="\n")