Arafath10 commited on
Commit
78129e9
·
1 Parent(s): aa77331

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,7 +37,7 @@ def wiki(name):
37
  def google(name):
38
  result = {"",""}
39
  text =""
40
- if "how to learn" in word or "steps for learning" in word or "step for learning" in word or "steps for" in word or "step for" in word:
41
  text = result = aitext(word)+"\n\n"
42
 
43
  url = "https://www.google.com/search?q="+name
@@ -112,7 +112,7 @@ def aitext(word):
112
  model="text-davinci-003",
113
  prompt=word,
114
  temperature=0.9,
115
- max_tokens=400,
116
  top_p=1,
117
  frequency_penalty=0,
118
  presence_penalty=0.6,
 
37
  def google(name):
38
  result = {"",""}
39
  text =""
40
+ 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:
41
  text = result = aitext(word)+"\n\n"
42
 
43
  url = "https://www.google.com/search?q="+name
 
112
  model="text-davinci-003",
113
  prompt=word,
114
  temperature=0.9,
115
+ max_tokens=200,
116
  top_p=1,
117
  frequency_penalty=0,
118
  presence_penalty=0.6,