mbabanov commited on
Commit
4829d4c
1 Parent(s): 7692f94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import transformers
5
  st.markdown("### Articles classificator.")
6
  # st.markdown("<img width=200px src='https://rozetked.me/images/uploads/dwoilp3BVjlE.jpg'>", unsafe_allow_html=True)
7
 
8
- @st.cache_data
9
  def LoadModel():
10
  return torch.load('model.pt'), AutoTokenizer.from_pretrained('bert-base-uncased')()
11
 
 
5
  st.markdown("### Articles classificator.")
6
  # st.markdown("<img width=200px src='https://rozetked.me/images/uploads/dwoilp3BVjlE.jpg'>", unsafe_allow_html=True)
7
 
8
+ @st.cache
9
  def LoadModel():
10
  return torch.load('model.pt'), AutoTokenizer.from_pretrained('bert-base-uncased')()
11