samzito12 commited on
Commit
246f6b2
·
verified ·
1 Parent(s): 25270b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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\'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):
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