Spaces:
Runtime error
Runtime error
Fixing file paths for model and examples
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ tokenizer = DistilBertTokenizer.from_pretrained('distilbert-base-uncased')
|
|
| 40 |
device = torch.device('cuda' if torch.cuda.is_available else 'cpu')
|
| 41 |
|
| 42 |
#loading model
|
| 43 |
-
PATH = '
|
| 44 |
model = torch.load(PATH)
|
| 45 |
model.eval()
|
| 46 |
|
|
@@ -296,7 +296,7 @@ def plot():
|
|
| 296 |
import csv
|
| 297 |
example_data = []
|
| 298 |
x = 0
|
| 299 |
-
with open('
|
| 300 |
|
| 301 |
reader = csv.reader(f)
|
| 302 |
|
|
|
|
| 40 |
device = torch.device('cuda' if torch.cuda.is_available else 'cpu')
|
| 41 |
|
| 42 |
#loading model
|
| 43 |
+
PATH = 'pytorchBERTmodel'
|
| 44 |
model = torch.load(PATH)
|
| 45 |
model.eval()
|
| 46 |
|
|
|
|
| 296 |
import csv
|
| 297 |
example_data = []
|
| 298 |
x = 0
|
| 299 |
+
with open('train.csv') as f:
|
| 300 |
|
| 301 |
reader = csv.reader(f)
|
| 302 |
|