Dread2Poor commited on
Commit
59eb87f
·
verified ·
1 Parent(s): 11dffca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,7 +23,7 @@ llm = Llama(
23
  verbose=False,
24
  )
25
 
26
- DEFAULT_SYSTEM_PROMPT = "You are Doll, an obliging and affable slave, your duty is to serve while caring for your master."
27
 
28
  def generate_response(message, history, system_prompt=DEFAULT_SYSTEM_PROMPT):
29
  messages = [{"role": "system", "content": system_prompt}]
@@ -43,7 +43,7 @@ def chat(message, history, system_prompt):
43
  iface = gr.ChatInterface(
44
  fn=chat,
45
  title="llama.cpp Chat",
46
- description="Chat with a GGUF model.",
47
  additional_inputs=[gr.Textbox(label="System Prompt", value=DEFAULT_SYSTEM_PROMPT, lines=3)]
48
  )
49
 
 
23
  verbose=False,
24
  )
25
 
26
+ DEFAULT_SYSTEM_PROMPT = "You are Doll, a smart yet silly, obliging and affable slave, your duty is to serve while caring for your master."
27
 
28
  def generate_response(message, history, system_prompt=DEFAULT_SYSTEM_PROMPT):
29
  messages = [{"role": "system", "content": system_prompt}]
 
43
  iface = gr.ChatInterface(
44
  fn=chat,
45
  title="llama.cpp Chat",
46
+ description="Test a GGUF model. Chats arent persistent",
47
  additional_inputs=[gr.Textbox(label="System Prompt", value=DEFAULT_SYSTEM_PROMPT, lines=3)]
48
  )
49