Spaces:
Runtime error
Runtime error
Commit
•
acac329
1
Parent(s):
1dd2457
Update app.py
Browse files
app.py
CHANGED
@@ -20,8 +20,8 @@ csv.field_size_limit(sys.maxsize)
|
|
20 |
|
21 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
22 |
|
23 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
24 |
-
model = AutoModelForSequenceClassification.from_pretrained("
|
25 |
|
26 |
# build a pipeline object to do predictions
|
27 |
pred = transformers.pipeline("text-classification", model=model,
|
|
|
20 |
|
21 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
22 |
|
23 |
+
tokenizer = AutoTokenizer.from_pretrained("VaAishvarR/ADRv1")
|
24 |
+
model = AutoModelForSequenceClassification.from_pretrained("VaAishvarR/ADRv1").to(device)
|
25 |
|
26 |
# build a pipeline object to do predictions
|
27 |
pred = transformers.pipeline("text-classification", model=model,
|