Amit Kumar
commited on
Commit
·
4a542e2
1
Parent(s):
cfde818
update model loading path
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ class_names = ["Positive", "Negative",]
|
|
11 |
|
12 |
### 2. Load the model ###
|
13 |
|
14 |
-
model = torch.load(f="
|
15 |
map_location=torch.device("cpu")) # load to CPU)
|
16 |
|
17 |
### 3. Predict function ###
|
|
|
11 |
|
12 |
### 2. Load the model ###
|
13 |
|
14 |
+
model = torch.load(f="BERT_sentiment_analysis.pth",
|
15 |
map_location=torch.device("cpu")) # load to CPU)
|
16 |
|
17 |
### 3. Predict function ###
|