awacke1 commited on
Commit
e78e45b
β€’
1 Parent(s): 6decdc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -4,7 +4,7 @@ from nltk.corpus import words
4
 
5
  st.title("Word Game Solver")
6
 
7
- @st.cache # cache the download process
8
  def download():
9
  nltk.download('words')
10
  download()
@@ -90,7 +90,9 @@ import requests
90
  from bs4 import BeautifulSoup as soup
91
  import lxml
92
  import lxml.etree as xml
93
-
 
 
94
  def define(word):
95
  url = f'https://www.dictionary.com/browse/{word}?s=t'
96
  r=requests.get(url)
 
4
 
5
  st.title("Word Game Solver")
6
 
7
+ @st.cache # cache download processes so they only execute once with same inputs
8
  def download():
9
  nltk.download('words')
10
  download()
 
90
  from bs4 import BeautifulSoup as soup
91
  import lxml
92
  import lxml.etree as xml
93
+
94
+
95
+ @st.cache # cache download processes so they only execute once with same inputs
96
  def define(word):
97
  url = f'https://www.dictionary.com/browse/{word}?s=t'
98
  r=requests.get(url)