mirror of
https://github.com/jingyaogong/minimind.git
synced 2026-04-25 08:48:16 +08:00
[update] random seed
This commit is contained in:
parent
6b0b0c5e2f
commit
b1865f75c2
@ -67,7 +67,6 @@ def main():
|
||||
prompt_iter = prompts if input_mode == 0 else iter(lambda: input('💬: '), '')
|
||||
for prompt in prompt_iter:
|
||||
setup_seed(random.randint(0, 31415926))
|
||||
setup_seed(42)
|
||||
if input_mode == 0: print(f'💬: {prompt}')
|
||||
conversation = conversation[-args.historys:] if args.historys else []
|
||||
conversation.append({"role": "user", "content": prompt})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user