dave21-py commited on
Commit
b5e286a
·
verified ·
1 Parent(s): e318aa9

Update streamlit_app.py

Browse files
Files changed (1) hide show
  1. streamlit_app.py +1 -1
streamlit_app.py CHANGED
@@ -19,7 +19,7 @@ def load_assets():
19
  tokenizer = DistilBertTokenizer.from_pretrained('distilbert-base-uncased')
20
 
21
  # Load the Tiny Model (Explicitly set map_location and weights_only=False)
22
- model = torch.load("siri_bert_quantized.pt", map_location=torch.device('cpu'))
23
  model.eval()
24
 
25
  return tokenizer, model, encoder
 
19
  tokenizer = DistilBertTokenizer.from_pretrained('distilbert-base-uncased')
20
 
21
  # Load the Tiny Model (Explicitly set map_location and weights_only=False)
22
+ model = torch.load("siri_bert_quantized.pt", map_location=torch.device('cpu'), weights_only=False)
23
  model.eval()
24
 
25
  return tokenizer, model, encoder