Spaces:
Runtime error
Runtime error
taka-yamakoshi
commited on
Commit
·
7397208
1
Parent(s):
77d2a77
debug
Browse files
app.py
CHANGED
@@ -209,8 +209,10 @@ if __name__=='__main__':
|
|
209 |
pron_locs[f'sent_{sent_id}'],
|
210 |
option_2_locs[f'sent_{sent_id}'],mask_id)
|
211 |
|
|
|
|
|
212 |
for token_ids in [masked_ids_option_1['sent_1'],masked_ids_option_1['sent_2'],masked_ids_option_2['sent_1'],masked_ids_option_2['sent_2']]:
|
213 |
-
st.write(' '.join([tokenizer.decode([token]) for
|
214 |
|
215 |
if st.session_state['page_status'] == 'finish_debug':
|
216 |
for layer_id in range(num_layers):
|
|
|
209 |
pron_locs[f'sent_{sent_id}'],
|
210 |
option_2_locs[f'sent_{sent_id}'],mask_id)
|
211 |
|
212 |
+
st.write(option_1_locs)
|
213 |
+
st.write(option_2_locs)
|
214 |
for token_ids in [masked_ids_option_1['sent_1'],masked_ids_option_1['sent_2'],masked_ids_option_2['sent_1'],masked_ids_option_2['sent_2']]:
|
215 |
+
st.write(' '.join([tokenizer.decode([token]) for token in token_ids]))
|
216 |
|
217 |
if st.session_state['page_status'] == 'finish_debug':
|
218 |
for layer_id in range(num_layers):
|