Commit
Β·
43337aa
1
Parent(s):
9c57485
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ from scipy.special import softmax
|
|
8 |
st.sidebar.title("Navigation and review examples")
|
9 |
|
10 |
# Use the selected page function to display the content
|
11 |
-
|
12 |
-
|
13 |
|
14 |
# An example for a positive movie review
|
15 |
st.sidebar.markdown("π **Positive Review Example:**")
|
@@ -19,7 +19,8 @@ st.sidebar.markdown("> I absolutely loved this movie! It was so thrilling and ca
|
|
19 |
st.sidebar.markdown("π **Negative Review Example:**")
|
20 |
st.sidebar.markdown("> This movie was a complete disappointment. The story was boring, and the acting was terrible. I wouldn't recommend it to anyone.")
|
21 |
|
22 |
-
page
|
|
|
23 |
|
24 |
# Load the TinyBERT model and tokenizer
|
25 |
model_path = "petermutwiri/Tiny_Bert_Cupstone"
|
|
|
8 |
st.sidebar.title("Navigation and review examples")
|
9 |
|
10 |
# Use the selected page function to display the content
|
11 |
+
|
12 |
+
page = st.sidebar.radio("Go to", ["Home"])
|
13 |
|
14 |
# An example for a positive movie review
|
15 |
st.sidebar.markdown("π **Positive Review Example:**")
|
|
|
19 |
st.sidebar.markdown("π **Negative Review Example:**")
|
20 |
st.sidebar.markdown("> This movie was a complete disappointment. The story was boring, and the acting was terrible. I wouldn't recommend it to anyone.")
|
21 |
|
22 |
+
if page == "Home":
|
23 |
+
render_home(model, tokenizer)
|
24 |
|
25 |
# Load the TinyBERT model and tokenizer
|
26 |
model_path = "petermutwiri/Tiny_Bert_Cupstone"
|