Update app.py
Browse files
app.py
CHANGED
@@ -19,8 +19,8 @@ csv.field_size_limit(sys.maxsize)
|
|
19 |
|
20 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
21 |
|
22 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
23 |
-
model = AutoModelForSequenceClassification.from_pretrained("
|
24 |
|
25 |
# build a pipeline object to do predictions
|
26 |
pred = transformers.pipeline("text-classification", model=model,
|
|
|
19 |
|
20 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
21 |
|
22 |
+
tokenizer = AutoTokenizer.from_pretrained("vikvenk/ADR_Detection")
|
23 |
+
model = AutoModelForSequenceClassification.from_pretrained("vikvenk/ADR_Detection").to(device)
|
24 |
|
25 |
# build a pipeline object to do predictions
|
26 |
pred = transformers.pipeline("text-classification", model=model,
|