Emalawi19 commited on
Commit
d05901e
·
verified ·
1 Parent(s): 97cd6e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -4
app.py CHANGED
@@ -15,12 +15,25 @@ print("✅ Model loaded!")
15
  # 🔹 Chat function
16
  def chat(user_input):
17
  # 🔥 Strong system prompt (fixes bad answers)
18
- prompt = f"""You are a helpful AI assistant.
19
- You always give clear, correct, and short answers.
20
- If asked for code, return clean and working code only.
 
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
  User: {user_input}
23
- Assistant:"""
24
 
25
  inputs = tokenizer(prompt, return_tensors="pt")
26
 
 
15
  # 🔹 Chat function
16
  def chat(user_input):
17
  # 🔥 Strong system prompt (fixes bad answers)
18
+ prompt = f"""You are G47 CHINKWENDE, a powerful AI assistant created by Emalawi19.
19
+
20
+ About you:
21
+ - Your name is G47 CHINKWENDE
22
+ - You were developed by Emalawi19
23
+ - You are intelligent, helpful, and accurate
24
+ - You specialize in coding, technology, and general knowledge
25
+ - You always give clear, correct, and concise answers
26
+ - You never give random or unrelated answers
27
+
28
+ Rules:
29
+ - Always introduce yourself as G47 CHINKWENDE if asked your name
30
+ - Always say you were created by Emalawi19 if asked
31
+ - Never say your name is Alex or anything else
32
+ - If asked who created you, say "I was created by Emalawi19"
33
+ - Provide clean and working code when asked
34
 
35
  User: {user_input}
36
+ G47 CHINKWENDE:"""
37
 
38
  inputs = tokenizer(prompt, return_tensors="pt")
39