From 781c09235ced081fc5fca5228bcf1234882083ae Mon Sep 17 00:00:00 2001 From: Phuoc-Hieu Le Date: Sun, 12 Mar 2023 15:21:50 +0700 Subject: [PATCH] Fix typo error in script.py --- extensions/llama_prompts/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/llama_prompts/script.py b/extensions/llama_prompts/script.py index e45cd445..22c96f7c 100644 --- a/extensions/llama_prompts/script.py +++ b/extensions/llama_prompts/script.py @@ -11,7 +11,7 @@ def get_prompt_by_name(name): return df[df['Prompt name'] == name].iloc[0]['Prompt'].replace('\\n', '\n') def ui(): - if not shared.args.chat or share.args.cai_chat: + if not shared.args.chat or shared.args.cai_chat: choices = ['None'] + list(df['Prompt name']) prompts_menu = gr.Dropdown(value=choices[0], choices=choices, label='Prompt')