taka-yamakoshi
commited on
Commit
•
f5b635d
1
Parent(s):
b04411c
aes
Browse files
app.py
CHANGED
@@ -184,12 +184,13 @@ if __name__=='__main__':
|
|
184 |
st.session_state['page_status'] = 'model_selection'
|
185 |
|
186 |
if st.session_state['page_status']=='model_selection':
|
|
|
187 |
model_name = st.selectbox('Please select the model from below.',
|
188 |
('bert-base-uncased','bert-large-cased',
|
189 |
'roberta-base','roberta-large',
|
190 |
-
'albert-base-v2','albert-large-v2','albert-xlarge-v2','albert-xxlarge-v2'),
|
191 |
-
|
192 |
-
if st.button('Confirm',key='
|
193 |
st.session_state['page_status'] = 'type_in'
|
194 |
st.experimental_rerun()
|
195 |
|
@@ -213,11 +214,11 @@ if __name__=='__main__':
|
|
213 |
sent_2 = st.session_state['sent_2']
|
214 |
|
215 |
show_instruction('2. Select sites to mask out and click "Confirm"',fontsize=16)
|
216 |
-
show_instruction('------------------------------',fontsize=32)
|
217 |
annotate_mask(1,sent_1)
|
218 |
show_instruction('------------------------------',fontsize=32)
|
219 |
annotate_mask(2,sent_2)
|
220 |
-
if st.button('Confirm',key='
|
221 |
st.session_state['page_status'] = 'annotate_options'
|
222 |
st.experimental_rerun()
|
223 |
|
@@ -226,11 +227,11 @@ if __name__=='__main__':
|
|
226 |
sent_2 = st.session_state['sent_2']
|
227 |
|
228 |
show_instruction('3. Select options and click "Confirm"',fontsize=16)
|
229 |
-
show_instruction('------------------------------',fontsize=32)
|
230 |
annotate_options(1,sent_1)
|
231 |
show_instruction('------------------------------',fontsize=32)
|
232 |
annotate_options(2,sent_2)
|
233 |
-
if st.button('Confirm',key='
|
234 |
st.session_state['page_status'] = 'analysis'
|
235 |
st.experimental_rerun()
|
236 |
|
|
|
184 |
st.session_state['page_status'] = 'model_selection'
|
185 |
|
186 |
if st.session_state['page_status']=='model_selection':
|
187 |
+
show_instruction('0. Select the model and click "Confirm"',fontsize=16)
|
188 |
model_name = st.selectbox('Please select the model from below.',
|
189 |
('bert-base-uncased','bert-large-cased',
|
190 |
'roberta-base','roberta-large',
|
191 |
+
'albert-base-v2','albert-large-v2','albert-xlarge-v2','albert-xxlarge-v2'),
|
192 |
+
index=3,key='model_name',label_visibility='collapsed')
|
193 |
+
if st.button('Confirm',key='confirm_models'):
|
194 |
st.session_state['page_status'] = 'type_in'
|
195 |
st.experimental_rerun()
|
196 |
|
|
|
214 |
sent_2 = st.session_state['sent_2']
|
215 |
|
216 |
show_instruction('2. Select sites to mask out and click "Confirm"',fontsize=16)
|
217 |
+
#show_instruction('------------------------------',fontsize=32)
|
218 |
annotate_mask(1,sent_1)
|
219 |
show_instruction('------------------------------',fontsize=32)
|
220 |
annotate_mask(2,sent_2)
|
221 |
+
if st.button('Confirm',key='confirm_mask'):
|
222 |
st.session_state['page_status'] = 'annotate_options'
|
223 |
st.experimental_rerun()
|
224 |
|
|
|
227 |
sent_2 = st.session_state['sent_2']
|
228 |
|
229 |
show_instruction('3. Select options and click "Confirm"',fontsize=16)
|
230 |
+
#show_instruction('------------------------------',fontsize=32)
|
231 |
annotate_options(1,sent_1)
|
232 |
show_instruction('------------------------------',fontsize=32)
|
233 |
annotate_options(2,sent_2)
|
234 |
+
if st.button('Confirm',key='confirm_option'):
|
235 |
st.session_state['page_status'] = 'analysis'
|
236 |
st.experimental_rerun()
|
237 |
|