Kuaaangwen commited on
Commit
b3c3404
1 Parent(s): 1716434

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -27,17 +27,19 @@ sidebar_selectbox = st.sidebar.selectbox(
27
  ("Compare two sentences", "Bulk upload and mark")
28
  )
29
 
30
- # Streamlit form elements (default to "Compare two sentences)
31
 
32
- st.subheader("Compare the similarity between two sentences")
33
 
34
- with st.form("submission_form", clear_on_submit=False):
35
-
36
- sentence_1 = st.text_input("Sentence 1 input")
37
 
38
- sentence_2 = st.text_input("Sentence 2 input")
39
 
40
- submit_button_compare = st.form_submit_button("Compare Sentences")
 
 
 
 
41
 
42
 
43
  if sidebar_selectbox == "Bulk upload and mark":
 
27
  ("Compare two sentences", "Bulk upload and mark")
28
  )
29
 
30
+ # Streamlit form elements (default to "Compare two sentences")
31
 
32
+ if sidebar_selectbox == "Compare two sentences":
33
 
34
+ st.subheader("Compare the similarity between two sentences")
 
 
35
 
36
+ with st.form("submission_form", clear_on_submit=False):
37
 
38
+ sentence_1 = st.text_input("Sentence 1 input")
39
+
40
+ sentence_2 = st.text_input("Sentence 2 input")
41
+
42
+ submit_button_compare = st.form_submit_button("Compare Sentences")
43
 
44
 
45
  if sidebar_selectbox == "Bulk upload and mark":