petermutwiri commited on
Commit
43337aa
Β·
1 Parent(s): 9c57485

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- if page == "Home":
12
- render_home(model, tokenizer)
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 = st.sidebar.radio("Go to", ["Home"])
 
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"