MCPcopy Create free account
hub / github.com/TencentARC/AnimeGamer / read_from_cli

Function read_from_cli

inference_Decoder.py:70–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 return results
69
70def read_from_cli():
71 cnt = 0
72 try:
73 while True:
74 x = input("Please input English text (Ctrl-D quit): ")
75 yield x.strip(), cnt
76 cnt += 1
77 except EOFError as e:
78 pass
79
80
81def read_from_file(p, rank=0, world_size=1):

Callers 1

sampling_mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected