Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,9 +16,8 @@ def respond(message, history):
|
|
| 16 |
"puke", "vomit", "throw up", "seizure", "bleeding", "choking",
|
| 17 |
"can't breathe", "emergency", "poison", "collapsed", "trauma", "injury"
|
| 18 |
]
|
| 19 |
-
|
| 20 |
-
return (
|
| 21 |
-
"This sounds like a possible medical emergency. "
|
| 22 |
"Please contact your veterinarian or an emergency animal hospital immediately. "
|
| 23 |
"Do not rely solely on online advice."
|
| 24 |
)
|
|
|
|
| 16 |
"puke", "vomit", "throw up", "seizure", "bleeding", "choking",
|
| 17 |
"can't breathe", "emergency", "poison", "collapsed", "trauma", "injury"
|
| 18 |
]
|
| 19 |
+
if any(word in message.lower() for word in urgent_keywords):
|
| 20 |
+
return ("This sounds like a possible medical emergency. "
|
|
|
|
| 21 |
"Please contact your veterinarian or an emergency animal hospital immediately. "
|
| 22 |
"Do not rely solely on online advice."
|
| 23 |
)
|