Commit ·
6b111ac
1
Parent(s): 98f0873
Update model.py
Browse files
model.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import wikipedia
|
| 2 |
|
| 3 |
def get_wikipedia_info(query):
|
| 4 |
-
|
| 5 |
try:
|
| 6 |
return wikipedia.summary(query, sentences=1)
|
| 7 |
except wikipedia.exceptions.PageError:
|
|
@@ -9,8 +9,8 @@ def get_wikipedia_info(query):
|
|
| 9 |
|
| 10 |
choise = input('Enter what do you want to know >')
|
| 11 |
|
| 12 |
-
|
| 13 |
info = get_wikipedia_info(choise)
|
| 14 |
|
| 15 |
-
|
| 16 |
print(info)
|
|
|
|
| 1 |
import wikipedia
|
| 2 |
|
| 3 |
def get_wikipedia_info(query):
|
| 4 |
+
|
| 5 |
try:
|
| 6 |
return wikipedia.summary(query, sentences=1)
|
| 7 |
except wikipedia.exceptions.PageError:
|
|
|
|
| 9 |
|
| 10 |
choise = input('Enter what do you want to know >')
|
| 11 |
|
| 12 |
+
|
| 13 |
info = get_wikipedia_info(choise)
|
| 14 |
|
| 15 |
+
|
| 16 |
print(info)
|