Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ llm = Llama(
|
|
23 |
verbose=False,
|
24 |
)
|
25 |
|
26 |
-
DEFAULT_SYSTEM_PROMPT = "You are Doll,
|
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="
|
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 |
|