krisha06 commited on
Commit
383b071
·
verified ·
1 Parent(s): b085c4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -31,9 +31,9 @@ if user_input:
31
  st.warning("❌ Sorry, I can only answer Python programming questions.")
32
  else:
33
  system_prompt = (
34
- "You are a helpful and knowledgeable Python tutor. "
35
- "Answer the user's Python programming questions clearly and concisely. "
36
- "If the question is unclear, ask for clarification."
37
  )
38
  prompt = f"<|system|>\n{system_prompt}</s>\n<|user|>\n{user_input}</s>\n<|assistant|>"
39
 
 
31
  st.warning("❌ Sorry, I can only answer Python programming questions.")
32
  else:
33
  system_prompt = (
34
+ "You are an expert Python tutor. Provide clear, concise, and accurate explanations with examples. "
35
+ "If the user's question is not related to Python programming, respond with: "
36
+ "'Sorry, I can only help with Python programming questions.'"
37
  )
38
  prompt = f"<|system|>\n{system_prompt}</s>\n<|user|>\n{user_input}</s>\n<|assistant|>"
39