Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from llama_cpp import Llama
|
|
4 |
llm = Llama(model_path="model.gguf", n_ctx=4000, n_threads=2, chat_format="chatml")
|
5 |
|
6 |
def generate(message, history,temperature=0.1,max_tokens=512):
|
7 |
-
system_prompt = "You are
|
8 |
formatted_prompt = [{"role": "system", "content": system_prompt}]
|
9 |
for user_prompt, bot_response in history:
|
10 |
formatted_prompt.append({"role": "user", "content": user_prompt})
|
|
|
4 |
llm = Llama(model_path="model.gguf", n_ctx=4000, n_threads=2, chat_format="chatml")
|
5 |
|
6 |
def generate(message, history,temperature=0.1,max_tokens=512):
|
7 |
+
system_prompt = "You are StableCode, a superintelligent coding AI assistant."
|
8 |
formatted_prompt = [{"role": "system", "content": system_prompt}]
|
9 |
for user_prompt, bot_response in history:
|
10 |
formatted_prompt.append({"role": "user", "content": user_prompt})
|