Spaces:
Running
Running
taka-yamakoshi
commited on
Commit
·
c4a27b1
1
Parent(s):
ef497bf
update text
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ if __name__=='__main__':
|
|
43 |
st.markdown(hide_table_row_index, unsafe_allow_html=True)
|
44 |
|
45 |
# Title
|
46 |
-
st.
|
47 |
|
48 |
tokenizer = load_model('albert-xxlarge-v2')
|
49 |
sent_cols = st.columns(2)
|
@@ -67,7 +67,8 @@ if __name__=='__main__':
|
|
67 |
st.write(f'{len(decoded_sent)} tokens')
|
68 |
|
69 |
if len(sents['sent_1'])>0 and len(sents['sent_2'])>0:
|
|
|
70 |
if num_tokens[f'sent_1']==num_tokens[f'sent_2']:
|
71 |
-
st.
|
72 |
else:
|
73 |
-
st.
|
|
|
43 |
st.markdown(hide_table_row_index, unsafe_allow_html=True)
|
44 |
|
45 |
# Title
|
46 |
+
st.markdown("<h1 style='text-align: center; color: black;'>Tokenizer</h1>", unsafe_allow_html=True)
|
47 |
|
48 |
tokenizer = load_model('albert-xxlarge-v2')
|
49 |
sent_cols = st.columns(2)
|
|
|
67 |
st.write(f'{len(decoded_sent)} tokens')
|
68 |
|
69 |
if len(sents['sent_1'])>0 and len(sents['sent_2'])>0:
|
70 |
+
st.markdown("<h2 style='text-align: center; color: black;'>Result&colon </h2>", unsafe_allow_html=True)
|
71 |
if num_tokens[f'sent_1']==num_tokens[f'sent_2']:
|
72 |
+
st.markdown("<h2 style='text-align: center; color: red;'>Matched! </h2>", unsafe_allow_html=True)
|
73 |
else:
|
74 |
+
st.markdown("<h2 style='text-align: center; color: red;'>Matched! </h2>", unsafe_allow_html=True)
|