taka-yamakoshi commited on
Commit
56432ff
1 Parent(s): d3bd75e
Files changed (2) hide show
  1. app.py +1 -2
  2. style.css +2 -1
app.py CHANGED
@@ -92,8 +92,7 @@ if __name__=='__main__':
92
  st.write('2. Select sites to mask out and click "Confirm"')
93
  input_sent = tokenizer(sent_1).input_ids
94
  decoded_sent = [tokenizer.decode([token]) for token in input_sent[1:-1]]
95
- char_nums = [len(word)+3 for word in decoded_sent]
96
- st.write(char_nums)
97
  cols = st.columns(char_nums)
98
  for word_id,(col,word) in enumerate(zip(cols,decoded_sent)):
99
  with col:
 
92
  st.write('2. Select sites to mask out and click "Confirm"')
93
  input_sent = tokenizer(sent_1).input_ids
94
  decoded_sent = [tokenizer.decode([token]) for token in input_sent[1:-1]]
95
+ char_nums = [len(word)+2 for word in decoded_sent]
 
96
  cols = st.columns(char_nums)
97
  for word_id,(col,word) in enumerate(zip(cols,decoded_sent)):
98
  with col:
style.css CHANGED
@@ -1,3 +1,4 @@
1
  .stButton>button {
2
- font-size: 8px;
 
3
  }
 
1
  .stButton>button {
2
+ color: #4f8bf9;
3
+ font-size: 6px;
4
  }