Clone77 commited on
Commit
ec0779b
·
verified ·
1 Parent(s): f5a68cd

Update pages/python.py

Browse files
Files changed (1) hide show
  1. pages/python.py +1 -1
pages/python.py CHANGED
@@ -56,7 +56,7 @@ with st.form(key="chat_form"):
56
  # --- Chat Logic ---
57
  if submit and user_input:
58
  # Add system context
59
- system_prompt = f"Act as a python mentor who has {experience_label} years of experience and teaches in a very friendly manner. Keep explanations within 150 words."
60
 
61
  # Create message list
62
  messages = [SystemMessage(content=system_prompt), HumanMessage(content=user_input)]
 
56
  # --- Chat Logic ---
57
  if submit and user_input:
58
  # Add system context
59
+ system_prompt = f"Act as a python mentor who has {experience_label} years of experience who teaches in a very friendly manner and also tells everything in within 150 words. If any question is asked other than python tell politely that this is out of the topic question"
60
 
61
  # Create message list
62
  messages = [SystemMessage(content=system_prompt), HumanMessage(content=user_input)]