Skip to content

Commit 658849d

Browse files
committed
Move a checkbutton
1 parent 05ee323 commit 658849d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ def create_settings_menus(default_preset):
238238
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'])
239239
with gr.Column():
240240
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)')
241+
shared.gradio['check'] = gr.Checkbox(value=shared.settings[f'stop_at_newline{suffix}'], label='Stop generating at new line character?')
241242

242243
if shared.args.extensions is not None:
243244
extensions_module.create_extensions_block()
@@ -250,8 +251,6 @@ def create_settings_menus(default_preset):
250251
shared.gradio['character_menu'] = gr.Dropdown(choices=available_characters, value='None', label='Character', elem_id='character-menu')
251252
ui.create_refresh_button(shared.gradio['character_menu'], lambda : None, lambda : {'choices': get_available_characters()}, 'refresh-button')
252253

253-
with gr.Row():
254-
shared.gradio['check'] = gr.Checkbox(value=shared.settings[f'stop_at_newline{suffix}'], label='Stop generating at new line character?')
255254
with gr.Row():
256255
with gr.Tab('Chat history'):
257256
with gr.Row():

0 commit comments

Comments
 (0)