Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def wiki(name):
|
|
37 |
def google(name):
|
38 |
result = {"",""}
|
39 |
text =""
|
40 |
-
if "how to learn" in
|
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=
|
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,
|