mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 16:17:57 +01:00
Fix typo error in script.py
This commit is contained in:
parent
ad14f0e499
commit
781c09235c
@ -11,7 +11,7 @@ def get_prompt_by_name(name):
|
|||||||
return df[df['Prompt name'] == name].iloc[0]['Prompt'].replace('\\n', '\n')
|
return df[df['Prompt name'] == name].iloc[0]['Prompt'].replace('\\n', '\n')
|
||||||
|
|
||||||
def ui():
|
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'])
|
choices = ['None'] + list(df['Prompt name'])
|
||||||
|
|
||||||
prompts_menu = gr.Dropdown(value=choices[0], choices=choices, label='Prompt')
|
prompts_menu = gr.Dropdown(value=choices[0], choices=choices, label='Prompt')
|
||||||
|
Loading…
Reference in New Issue
Block a user