Remove unused extension
This commit is contained in:
parent
89bc540557
commit
19e3a59997
1 changed files with 0 additions and 21 deletions
|
@ -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'])
|
|
Loading…
Add table
Add a link
Reference in a new issue