Spaces:
Sleeping
Sleeping
Plmanwaring
commited on
Commit
•
4e43e55
1
Parent(s):
0e91bfe
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("Plmanwaring/ADR_Detector")
|
24 |
+
model = AutoModelForSequenceClassification.from_pretrained("Plmanwaring/ADR_Detector").to(device)
|
25 |
|
26 |
# build a pipeline object to do predictions
|
27 |
pred = transformers.pipeline("text-classification", model=model,
|