Spaces:
Runtime error
Runtime error
Commit
•
a6b1837
1
Parent(s):
32ba95a
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from text_preprocessing import preprocess_text
|
|
6 |
|
7 |
# Load the fine-tuned BERT model
|
8 |
model = RobertaClass()
|
9 |
-
model.load_state_dict(torch.load('
|
10 |
map_location=torch.device('cpu')))
|
11 |
|
12 |
# Load the tokenizer
|
|
|
6 |
|
7 |
# Load the fine-tuned BERT model
|
8 |
model = RobertaClass()
|
9 |
+
model.load_state_dict(torch.load('trained_model.bin',
|
10 |
map_location=torch.device('cpu')))
|
11 |
|
12 |
# Load the tokenizer
|