oobabooga 2 лет назад
Родитель
Сommit
658849d6c3
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      server.py

+ 1 - 2
server.py

@@ -238,6 +238,7 @@ if shared.args.chat or shared.args.cai_chat:
                         shared.gradio['chat_prompt_size_slider'] = gr.Slider(minimum=shared.settings['chat_prompt_size_min'], maximum=shared.settings['chat_prompt_size_max'], step=1, label='Maximum prompt size in tokens', value=shared.settings['chat_prompt_size'])
                     with gr.Column():
                         shared.gradio['chat_generation_attempts'] = gr.Slider(minimum=shared.settings['chat_generation_attempts_min'], maximum=shared.settings['chat_generation_attempts_max'], value=shared.settings['chat_generation_attempts'], step=1, label='Generation attempts (for longer replies)')
+                        shared.gradio['check'] = gr.Checkbox(value=shared.settings[f'stop_at_newline{suffix}'], label='Stop generating at new line character?')
 
             if shared.args.extensions is not None:
                 extensions_module.create_extensions_block()
@@ -251,8 +252,6 @@ if shared.args.chat or shared.args.cai_chat:
                 ui.create_refresh_button(shared.gradio['character_menu'], lambda : None, lambda : {'choices': get_available_characters()}, 'refresh-button')
 
             with gr.Row():
-                shared.gradio['check'] = gr.Checkbox(value=shared.settings[f'stop_at_newline{suffix}'], label='Stop generating at new line character?')
-            with gr.Row():
                 with gr.Tab('Chat history'):
                     with gr.Row():
                         with gr.Column():