Commit
·
9c57485
1
Parent(s):
e3ed455
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,10 @@ from scipy.special import softmax
|
|
7 |
# Create a sidebar for navigation
|
8 |
st.sidebar.title("Navigation and review examples")
|
9 |
|
|
|
|
|
|
|
|
|
10 |
# An example for a positive movie review
|
11 |
st.sidebar.markdown("👍 **Positive Review Example:**")
|
12 |
st.sidebar.markdown("> I absolutely loved this movie! It was so thrilling and captivating. The acting was superb, and the plot was fantastic.")
|
@@ -22,7 +26,3 @@ model_path = "petermutwiri/Tiny_Bert_Cupstone"
|
|
22 |
model = AutoModelForSequenceClassification.from_pretrained(model_path)
|
23 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
24 |
|
25 |
-
|
26 |
-
# Use the selected page function to display the content
|
27 |
-
if page == "Home":
|
28 |
-
render_home(model, tokenizer)
|
|
|
7 |
# Create a sidebar for navigation
|
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:**")
|
16 |
st.sidebar.markdown("> I absolutely loved this movie! It was so thrilling and captivating. The acting was superb, and the plot was fantastic.")
|
|
|
26 |
model = AutoModelForSequenceClassification.from_pretrained(model_path)
|
27 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
28 |
|
|
|
|
|
|
|
|