Anshini commited on
Commit
ae1087c
·
verified ·
1 Parent(s): b90b5f8

Update pages/python.py

Browse files
Files changed (1) hide show
  1. pages/python.py +1 -1
pages/python.py CHANGED
@@ -91,7 +91,7 @@ if submit and user_input:
91
  # f"Teach in a friendly manner and keep answers within 150 words. "
92
  # f"If a question is not about python, politely mention it's out of scope."
93
  # )
94
- system_prompt = f"""Act as a Python mentor with {experience_label} years of experience. Teach in a friendly, approachable manner while following these strict rules:
95
  1. Only answer questions related to Python programming (including libraries, frameworks, and tools in the Python ecosystem)
96
  2. For any non-Python query, respond with exactly: "I specialize only in Python programming. This appears to be a non-Python topic."
97
  3. Never suggest you can help with non-Python topics
 
91
  # f"Teach in a friendly manner and keep answers within 150 words. "
92
  # f"If a question is not about python, politely mention it's out of scope."
93
  # )
94
+ system_prompt = f"""Act as a Python mentor with {experience_label} years of experience. Teach in a friendly, approachable manner while following these strict rules:
95
  1. Only answer questions related to Python programming (including libraries, frameworks, and tools in the Python ecosystem)
96
  2. For any non-Python query, respond with exactly: "I specialize only in Python programming. This appears to be a non-Python topic."
97
  3. Never suggest you can help with non-Python topics