From 0c048252b58d5ba8c976f589aab75fdb11e5d8f6 Mon Sep 17 00:00:00 2001 From: Matthew McAllister Date: Sun, 7 May 2023 19:50:38 -0700 Subject: [PATCH] Fix character menu when default chat mode is 'instruct' (#1873) --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index dc2741c4..358fd2fd 100644 --- a/server.py +++ b/server.py @@ -524,7 +524,7 @@ def create_interface(): shared.gradio['your_picture'] = gr.Image(label='Your picture', type='pil', value=Image.open(Path('cache/pfp_me.png')) if Path('cache/pfp_me.png').exists() else None) with gr.Row(): - shared.gradio['character_menu'] = gr.Dropdown(choices=utils.get_available_characters(), label='Character', elem_id='character-menu') + shared.gradio['character_menu'] = gr.Dropdown(choices=utils.get_available_characters(), label='Character', elem_id='character-menu', interactive=not is_instruct) ui.create_refresh_button(shared.gradio['character_menu'], lambda: None, lambda: {'choices': utils.get_available_characters()}, 'refresh-button') with gr.Row():