taka-yamakoshi commited on
Commit
2d48eb3
1 Parent(s): 5e5793b
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -41,11 +41,6 @@ if __name__=='__main__':
41
  """
42
  st.markdown(define_margins, unsafe_allow_html=True)
43
  st.markdown(hide_table_row_index, unsafe_allow_html=True)
44
- input_type = st.sidebar.radio(
45
- label='1. Choose the input type',
46
- on_change=clear_df,
47
- options=('Use one of the example sentences','Use your own initial sentence')
48
- )
49
 
50
  # Title
51
  st.header("Tokenizer Demo")
@@ -65,8 +60,8 @@ if __name__=='__main__':
65
  for word_col,word in zip(word_cols,decoded_sent):
66
  with word_col:
67
  st.write(word)
68
- st.write(f'{num_tokens[f'sent_{sent_id}']} tokens')
69
  if num_tokens[f'sent_1']==num_tokens[f'sent_2']:
70
- st.write('Matched!')
71
  else:
72
- st.write('Not Matched...')
 
41
  """
42
  st.markdown(define_margins, unsafe_allow_html=True)
43
  st.markdown(hide_table_row_index, unsafe_allow_html=True)
 
 
 
 
 
44
 
45
  # Title
46
  st.header("Tokenizer Demo")
 
60
  for word_col,word in zip(word_cols,decoded_sent):
61
  with word_col:
62
  st.write(word)
63
+ st.write(f'{len(decoded_sent)} tokens')
64
  if num_tokens[f'sent_1']==num_tokens[f'sent_2']:
65
+ st.subheader('Matched!')
66
  else:
67
+ st.subheader('Not Matched...')