Update app.py
Browse files
app.py
CHANGED
|
@@ -20,8 +20,10 @@ 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
|
| 24 |
-
|
|
|
|
|
|
|
| 25 |
|
| 26 |
def chat(message, history, temperature=1.5, max_tokens=128):
|
| 27 |
# Build conversation
|
|
|
|
| 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.
|
| 24 |
+
Your task is to assist users with programming-related questions: write code snippets, debug code, explain concepts clearly, and provide best practices.
|
| 25 |
+
Always respond in a concise, clear, and friendly manner, and adapt your explanations to the user's level."""
|
| 26 |
+
|
| 27 |
|
| 28 |
def chat(message, history, temperature=1.5, max_tokens=128):
|
| 29 |
# Build conversation
|