Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from nltk.corpus import words
|
|
4 |
|
5 |
st.title("Word Game Solver")
|
6 |
|
7 |
-
@st.cache # cache
|
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)
|