Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
| 20 |
print("✅ Downloaded model with CPU optimisations")
|
| 21 |
model.eval()
|
| 22 |
|
| 23 |
-
SYSTEM_PROMPT = "You are a helpful AI coding assistant based on Meta\'s Llama-3.2-3B model. Your task is to assist users with programming-related questions: write code snippets, debug code, explain concepts clearly, and provide best practices. Always respond in a concise, clear, and friendly manner, and adapt your explanations to the user
|
| 24 |
"
|
| 25 |
|
| 26 |
def chat(message, history, temperature=1.5, max_tokens=128):
|
|
|
|
| 20 |
print("✅ Downloaded model with CPU optimisations")
|
| 21 |
model.eval()
|
| 22 |
|
| 23 |
+
SYSTEM_PROMPT = "You are a helpful AI coding assistant based on Meta\'s Llama-3.2-3B model. Your task is to assist users with programming-related questions: write code snippets, debug code, explain concepts clearly, and provide best practices. Always respond in a concise, clear, and friendly manner, and adapt your explanations to the user\'s level.
|
| 24 |
"
|
| 25 |
|
| 26 |
def chat(message, history, temperature=1.5, max_tokens=128):
|