Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +4 -0
src/streamlit_app.py
CHANGED
|
@@ -11,6 +11,10 @@ from functools import lru_cache
|
|
| 11 |
|
| 12 |
nltk.download('stopwords')
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
@st.cache_resource
|
| 15 |
def load_data():
|
| 16 |
matrix_res = requests.get('https://huggingface.co/datasets/jadenhochh/TF_IDF/resolve/main/tfidf_matrix.pkl')
|
|
|
|
| 11 |
|
| 12 |
nltk.download('stopwords')
|
| 13 |
|
| 14 |
+
stemmer = PorterStemmer()
|
| 15 |
+
stop = set(stopwords.words("english"))
|
| 16 |
+
re_words = re.compile(r"[a-z]+")
|
| 17 |
+
|
| 18 |
@st.cache_resource
|
| 19 |
def load_data():
|
| 20 |
matrix_res = requests.get('https://huggingface.co/datasets/jadenhochh/TF_IDF/resolve/main/tfidf_matrix.pkl')
|