Pippoz commited on
Commit
31abaaf
1 Parent(s): e76468d

Update pages/fill_mask.py

Browse files
Files changed (1) hide show
  1. pages/fill_mask.py +2 -2
pages/fill_mask.py CHANGED
@@ -13,7 +13,7 @@ def app():
13
 
14
  @st.cache(allow_output_mutation=True, suppress_st_warning =True, show_spinner=False)
15
  def get_model():
16
- return pipeline('fill-mask', model='bert-base-uncased',skip_special_tokens=True)
17
 
18
  def create_graph(answer):
19
  x_bar = [i['token_str'] for i in answer]
@@ -32,7 +32,7 @@ def app():
32
  st.altair_chart(chart, use_container_width=True)
33
 
34
 
35
- col1, col2 = st.beta_columns([2,1])
36
 
37
 
38
  with col1:
 
13
 
14
  @st.cache(allow_output_mutation=True, suppress_st_warning =True, show_spinner=False)
15
  def get_model():
16
+ return pipeline('fill-mask', model='bert-base-uncased')
17
 
18
  def create_graph(answer):
19
  x_bar = [i['token_str'] for i in answer]
 
32
  st.altair_chart(chart, use_container_width=True)
33
 
34
 
35
+ col1, col2 = st.columns([2,1])
36
 
37
 
38
  with col1: