Arafath10 commited on
Commit
f345069
·
1 Parent(s): 98ce8d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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[:-25]:
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