Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,9 @@ def qq():
|
|
16 |
return "no found"
|
17 |
|
18 |
def greet(name):
|
19 |
-
|
|
|
|
|
20 |
url = "https://www.google.com/search?q="+name
|
21 |
r = requests.get(url)
|
22 |
|
@@ -32,7 +34,7 @@ def greet(name):
|
|
32 |
print("------",n)
|
33 |
result = info.getText()[180:]
|
34 |
result = result.split(".")
|
35 |
-
for s in result[:-
|
36 |
p = p + s
|
37 |
|
38 |
return p
|
|
|
16 |
return "no found"
|
17 |
|
18 |
def greet(name):
|
19 |
+
if "who are you" in name or "who r u" in name:
|
20 |
+
|
21 |
+
return "im ssebowa.org created Chatbot"
|
22 |
url = "https://www.google.com/search?q="+name
|
23 |
r = requests.get(url)
|
24 |
|
|
|
34 |
print("------",n)
|
35 |
result = info.getText()[180:]
|
36 |
result = result.split(".")
|
37 |
+
for s in result[:-40]:
|
38 |
p = p + s
|
39 |
|
40 |
return p
|