taka-yamakoshi
commited on
Commit
•
7c56f41
1
Parent(s):
6f269e2
bring back some
Browse files
app.py
CHANGED
@@ -163,11 +163,11 @@ def run_intervention(interventions,batch_size,model,masked_ids_option_1,masked_i
|
|
163 |
|
164 |
if __name__=='__main__':
|
165 |
wide_setup()
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
|
172 |
main_area = st.empty()
|
173 |
|
|
|
163 |
|
164 |
if __name__=='__main__':
|
165 |
wide_setup()
|
166 |
+
load_css('style.css')
|
167 |
+
tokenizer,model = load_model()
|
168 |
+
num_layers, num_heads = model.config.num_hidden_layers, model.config.num_attention_heads
|
169 |
+
st.write(num_layers,num_heads)
|
170 |
+
mask_id = tokenizer('[MASK]').input_ids[1:-1][0]
|
171 |
|
172 |
main_area = st.empty()
|
173 |
|
style.css
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
div.stButton > button:first-child {
|
2 |
+
color: #4f8bf9;
|
3 |
+
font-size: 0.5rem;
|
4 |
+
}
|