MCPcopy Index your code
hub / github.com/Turing-Project/WriteGPT / immediate_print

Function immediate_print

LanguageNetwork/GPT2/scripts/formatter.py:118–123  ·  view source on GitHub ↗
(msg, text)

Source from the content-addressed store, hash-verified

116
117
118def immediate_print(msg, text):
119 print(msg)
120 for i in text:
121 print(i, end="")
122 sys.stdout.flush()
123 time.sleep(random.random()/20)
124
125if __name__ == "__main__":
126 try:

Callers 2

demo.pyFile · 0.90
formatter.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected