WarpedCreeper commited on
Commit
6b111ac
·
1 Parent(s): 98f0873

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +3 -3
model.py CHANGED
@@ -1,7 +1,7 @@
1
  import wikipedia
2
 
3
  def get_wikipedia_info(query):
4
- # Get the information from Wikipedia.
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
- # Get the information about the United States.
13
  info = get_wikipedia_info(choise)
14
 
15
- # Display the information to the user.
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)