Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ tokenizer = DistilBertTokenizer.from_pretrained('distilbert-base-uncased')
|
|
42 |
device = torch.device('cuda' if torch.cuda.is_available else 'cpu')
|
43 |
|
44 |
# loading model
|
45 |
-
PATH = '
|
46 |
model = torch.load(PATH, map_location=torch.device('cpu'))
|
47 |
model.eval()
|
48 |
|
42 |
device = torch.device('cuda' if torch.cuda.is_available else 'cpu')
|
43 |
|
44 |
# loading model
|
45 |
+
PATH = 'pytorchBERTmodel'
|
46 |
model = torch.load(PATH, map_location=torch.device('cpu'))
|
47 |
model.eval()
|
48 |
|