Update app.py
Browse files
app.py
CHANGED
@@ -34,15 +34,31 @@ def wiki(name):
|
|
34 |
return out
|
35 |
|
36 |
def greet(name):
|
37 |
-
if "who are you" in name or "who r u" in name:
|
38 |
|
39 |
-
return "
|
40 |
|
41 |
|
42 |
if "tell me a joke" in name or "joke" in name:
|
43 |
return joke()
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
return wiki(name)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
def google():
|
47 |
url = "https://www.google.com/search?q="+name
|
48 |
r = requests.get(url)
|
|
|
34 |
return out
|
35 |
|
36 |
def greet(name):
|
37 |
+
if "who are you" in name or "what is you" in name or "your name" in name or"who r u" in name:
|
38 |
|
39 |
+
return "Im Ai Based Chatbot Created by ssebowa.org"
|
40 |
|
41 |
|
42 |
if "tell me a joke" in name or "joke" in name:
|
43 |
return joke()
|
44 |
+
|
45 |
+
if "love you" in name or "i love" in name:
|
46 |
+
return "me too"
|
47 |
+
if "marry me" in name or "marry" in name:
|
48 |
+
return "im not intrested"
|
49 |
+
if "your age" in name or "age" in name:
|
50 |
+
return "Im not a human so i don't have age"
|
51 |
return wiki(name)
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
|
56 |
+
|
57 |
+
|
58 |
+
|
59 |
+
|
60 |
+
|
61 |
+
|
62 |
def google():
|
63 |
url = "https://www.google.com/search?q="+name
|
64 |
r = requests.get(url)
|