Spaces:
Running
Running
Update streamlit_app.py
Browse files- 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
|