Spaces:
Runtime error
Runtime error
taka-yamakoshi
commited on
Commit
·
56432ff
1
Parent(s):
d3bd75e
test
Browse files
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)+
|
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 |
-
|
|
|
3 |
}
|
|
|
1 |
.stButton>button {
|
2 |
+
color: #4f8bf9;
|
3 |
+
font-size: 6px;
|
4 |
}
|