Amit Kumar commited on
Commit ·
4a542e2
1
Parent(s): cfde818
update model loading path
Browse files10 unmodified lines111213141415161710 unmodified lines
### 2. Load the model ###
model = torch.load(f="bert_sentiment_classifier/BERT_sentiment_analysis.pth",model = torch.load(f="BERT_sentiment_analysis.pth", map_location=torch.device("cpu")) # load to CPU)
### 3. Predict function ###app.py+1-1