From 19e3a59997f498a61f19d2f7f570b3030d854c1c Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Mon, 17 Apr 2023 11:06:08 -0300 Subject: [PATCH] Remove unused extension --- extensions/llama_prompts/script.py | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 extensions/llama_prompts/script.py diff --git a/extensions/llama_prompts/script.py b/extensions/llama_prompts/script.py deleted file mode 100644 index 33650156..00000000 --- a/extensions/llama_prompts/script.py +++ /dev/null @@ -1,21 +0,0 @@ -import gradio as gr -import pandas as pd - -import modules.shared as shared - -df = pd.read_csv("https://raw.githubusercontent.com/devbrones/llama-prompts/main/prompts/prompts.csv") - - -def get_prompt_by_name(name): - if name == 'None': - return '' - else: - return df[df['Prompt name'] == name].iloc[0]['Prompt'].replace('\\n', '\n') - - -def ui(): - if not shared.is_chat(): - choices = ['None'] + list(df['Prompt name']) - - prompts_menu = gr.Dropdown(value=choices[0], choices=choices, label='Prompt') - prompts_menu.change(get_prompt_by_name, prompts_menu, shared.gradio['textbox'])