Spaces:
Sleeping
Sleeping
Update pages/python.py
Browse files- 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
|
| 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)]
|