Update app.py
Browse files
app.py
CHANGED
|
@@ -87,11 +87,11 @@ music = {
|
|
| 87 |
}
|
| 88 |
|
| 89 |
def get_response(user_input):
|
| 90 |
-
|
| 91 |
-
|
| 92 |
|
| 93 |
-
|
| 94 |
-
|
| 95 |
|
| 96 |
# Check if the user asks for the definition of a disease
|
| 97 |
disease_keywords = ['definition', 'what is', 'explain', "what's", 'whats']
|
|
|
|
| 87 |
}
|
| 88 |
|
| 89 |
def get_response(user_input):
|
| 90 |
+
if 'hello' in user_input.lower() or 'hi' in user_input.lower():
|
| 91 |
+
return "Hello! How can I assist you today?"
|
| 92 |
|
| 93 |
+
if 'thank you' in user_input.lower() or 'thanks' in user_input.lower() or 'thanx' in user_input.lower():
|
| 94 |
+
return "You are welcome!"
|
| 95 |
|
| 96 |
# Check if the user asks for the definition of a disease
|
| 97 |
disease_keywords = ['definition', 'what is', 'explain', "what's", 'whats']
|