Plmanwaring commited on
Commit
4e43e55
1 Parent(s): 0e91bfe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("paragon-analytics/ADRv1")
24
- model = AutoModelForSequenceClassification.from_pretrained("paragon-analytics/ADRv1").to(device)
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,