Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
def show_home_page():
|
| 4 |
-
st.title("
|
| 5 |
st.markdown(
|
| 6 |
"""
|
| 7 |
### Welcome to NLP Guide
|
|
@@ -15,21 +15,21 @@ def show_home_page():
|
|
| 15 |
)
|
| 16 |
|
| 17 |
if st.button("NLP Terminologies"):
|
| 18 |
-
st.
|
| 19 |
if st.button("One-Hot Vectorization"):
|
| 20 |
-
st.
|
| 21 |
if st.button("Bag of Words"):
|
| 22 |
-
st.
|
| 23 |
if st.button("TF-IDF Vectorizer"):
|
| 24 |
-
st.
|
| 25 |
if st.button("Word2Vec"):
|
| 26 |
-
st.
|
| 27 |
if st.button("FastText"):
|
| 28 |
-
st.
|
| 29 |
if st.button("Tokenization"):
|
| 30 |
-
st.
|
| 31 |
if st.button("Stop Words"):
|
| 32 |
-
st.
|
| 33 |
|
| 34 |
def show_page(page):
|
| 35 |
if page == "terminologies":
|
|
@@ -253,7 +253,7 @@ def show_page(page):
|
|
| 253 |
"""
|
| 254 |
)
|
| 255 |
|
| 256 |
-
query_params = st.
|
| 257 |
page = query_params.get("page", ["home"])[0]
|
| 258 |
|
| 259 |
if page == "home":
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
def show_home_page():
|
| 4 |
+
st.title("Natural Language Processing (NLP)")
|
| 5 |
st.markdown(
|
| 6 |
"""
|
| 7 |
### Welcome to NLP Guide
|
|
|
|
| 15 |
)
|
| 16 |
|
| 17 |
if st.button("NLP Terminologies"):
|
| 18 |
+
st.query_params.(page="terminologies")
|
| 19 |
if st.button("One-Hot Vectorization"):
|
| 20 |
+
st.query_params.(page="one_hot")
|
| 21 |
if st.button("Bag of Words"):
|
| 22 |
+
st.query_params.(page="bow")
|
| 23 |
if st.button("TF-IDF Vectorizer"):
|
| 24 |
+
st.query_params.(page="tfidf")
|
| 25 |
if st.button("Word2Vec"):
|
| 26 |
+
st.query_params.(page="word2vec")
|
| 27 |
if st.button("FastText"):
|
| 28 |
+
st.query_params.(page="fasttext")
|
| 29 |
if st.button("Tokenization"):
|
| 30 |
+
st.query_params.(page="tokenization")
|
| 31 |
if st.button("Stop Words"):
|
| 32 |
+
st.query_params.(page="stop_words")
|
| 33 |
|
| 34 |
def show_page(page):
|
| 35 |
if page == "terminologies":
|
|
|
|
| 253 |
"""
|
| 254 |
)
|
| 255 |
|
| 256 |
+
query_params = st.query_params.()
|
| 257 |
page = query_params.get("page", ["home"])[0]
|
| 258 |
|
| 259 |
if page == "home":
|