Arafath10 commited on
Commit
820129b
·
1 Parent(s): 15759e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -54,7 +54,10 @@ def google(name):
54
  result = {"",""}
55
  text =""
56
  if "how to learn" in name or "steps for learning" in name or "step for learning" in name or "steps for" in name or "step for" in name:
57
- text = aitext(name)+"\n\n"
 
 
 
58
 
59
  url = "https://www.google.com/search?q="+name
60
  r = requests.get(url)
 
54
  result = {"",""}
55
  text =""
56
  if "how to learn" in name or "steps for learning" in name or "step for learning" in name or "steps for" in name or "step for" in name:
57
+ try:
58
+ text = aitext(name)+"\n\n"
59
+ except:
60
+ text =""
61
 
62
  url = "https://www.google.com/search?q="+name
63
  r = requests.get(url)