taka-yamakoshi
commited on
Commit
•
695da47
1
Parent(s):
e97d34c
fix
Browse files
app.py
CHANGED
@@ -160,10 +160,10 @@ if __name__=='__main__':
|
|
160 |
sent_2 = st.session_state['sent_2']
|
161 |
st.markdown(show_annotated_sentence(st.session_state['decoded_sent_1'],
|
162 |
option_locs=st.session_state['option_locs_1'],
|
163 |
-
mask_locs=st.session_state['mask_locs_1']))
|
164 |
st.markdown(show_annotated_sentence(st.session_state['decoded_sent_2'],
|
165 |
option_locs=st.session_state['option_locs_2'],
|
166 |
-
mask_locs=st.session_state['mask_locs_2']))
|
167 |
|
168 |
input_ids_1 = tokenizer(sent_1).input_ids
|
169 |
input_ids_2 = tokenizer(sent_2).input_ids
|
|
|
160 |
sent_2 = st.session_state['sent_2']
|
161 |
st.markdown(show_annotated_sentence(st.session_state['decoded_sent_1'],
|
162 |
option_locs=st.session_state['option_locs_1'],
|
163 |
+
mask_locs=st.session_state['mask_locs_1']), unsafe_allow_html = True)
|
164 |
st.markdown(show_annotated_sentence(st.session_state['decoded_sent_2'],
|
165 |
option_locs=st.session_state['option_locs_2'],
|
166 |
+
mask_locs=st.session_state['mask_locs_2']), unsafe_allow_html = True)
|
167 |
|
168 |
input_ids_1 = tokenizer(sent_1).input_ids
|
169 |
input_ids_2 = tokenizer(sent_2).input_ids
|