Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ st.sidebar.button('Reset Chat', on_click=reset_conversation)
|
|
| 52 |
# Initialize conversation and chat history
|
| 53 |
if 'messages' not in st.session_state:
|
| 54 |
st.session_state.messages = [
|
| 55 |
-
{"role": "system", "content": "You are a knowledgeable and empathetic medical assistant providing accurate and compassionate health advice based on user input."}
|
| 56 |
]
|
| 57 |
|
| 58 |
# Display chat history
|
|
|
|
| 52 |
# Initialize conversation and chat history
|
| 53 |
if 'messages' not in st.session_state:
|
| 54 |
st.session_state.messages = [
|
| 55 |
+
{"role": "system", "content": "You are a knowledgeable and empathetic medical assistant providing accurate and compassionate health advice based on user input. You should only respond to health issues; otherwise, respond with 'It is out of my scope.'"}
|
| 56 |
]
|
| 57 |
|
| 58 |
# Display chat history
|