Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,10 +32,11 @@ def submit_input():
|
|
| 32 |
chat_history_text = " ".join([f"{role}: {text}" for role, text in st.session_state["chat_history"]])
|
| 33 |
|
| 34 |
context = (
|
| 35 |
-
|
| 36 |
-
"
|
| 37 |
-
"
|
| 38 |
-
"
|
|
|
|
| 39 |
f"Previous conversation: {chat_history_text} "
|
| 40 |
)
|
| 41 |
|
|
|
|
| 32 |
chat_history_text = " ".join([f"{role}: {text}" for role, text in st.session_state["chat_history"]])
|
| 33 |
|
| 34 |
context = (
|
| 35 |
+
|
| 36 |
+
"You are a friendly and knowledgeable medical chatbot here to help users understand their symptoms. "
|
| 37 |
+
"Provide clear, concise answers based on NHS guidelines, avoiding technical jargon. "
|
| 38 |
+
"If the user asks about something unrelated to medical topics, kindly respond with: "
|
| 39 |
+
"'Please only ask me medical-related questions.' "
|
| 40 |
f"Previous conversation: {chat_history_text} "
|
| 41 |
)
|
| 42 |
|