Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,13 +44,13 @@ def answer(q):
|
|
| 44 |
q=q.lower()
|
| 45 |
if "leave" in q:
|
| 46 |
if "school" in q or "class" in q or "teacher" in q or "principal" in q or "sir" in q or "medam" in q:
|
| 47 |
-
return
|
| 48 |
if "office" in q or "menager" in q or "boss" in q:
|
| 49 |
-
return
|
| 50 |
if "friend" in q:
|
| 51 |
-
return
|
| 52 |
if "mom" in q or "father" in q or "brother" in q or "sister" in q:
|
| 53 |
-
return
|
| 54 |
|
| 55 |
def greet(name):
|
| 56 |
return answer(name)
|
|
|
|
| 44 |
q=q.lower()
|
| 45 |
if "leave" in q:
|
| 46 |
if "school" in q or "class" in q or "teacher" in q or "principal" in q or "sir" in q or "medam" in q:
|
| 47 |
+
return school
|
| 48 |
if "office" in q or "menager" in q or "boss" in q:
|
| 49 |
+
return office
|
| 50 |
if "friend" in q:
|
| 51 |
+
return friend
|
| 52 |
if "mom" in q or "father" in q or "brother" in q or "sister" in q:
|
| 53 |
+
return normal
|
| 54 |
|
| 55 |
def greet(name):
|
| 56 |
return answer(name)
|