Add seed to settings

This commit is contained in:
oobabooga 2023-03-31 12:22:07 -03:00
parent 5a6f939f05
commit 1d1d9e40cd
3 changed files with 3 additions and 1 deletions

View file

@ -166,7 +166,7 @@ def create_settings_menus(default_preset):
with gr.Column():
create_model_and_preset_menus()
with gr.Column():
shared.gradio['seed'] = gr.Number(value=-1, label='Seed (-1 for random)')
shared.gradio['seed'] = gr.Number(value=shared.settings['seed'], label='Seed (-1 for random)')
with gr.Row():
with gr.Column():