unijoh commited on
Commit
997671b
·
verified ·
1 Parent(s): bb87f9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -12,9 +12,8 @@ HF_TOKEN = os.getenv("BRAGD")
12
  if not HF_TOKEN:
13
  raise RuntimeError("Missing BRAGD token secret.")
14
 
15
-
16
- tokenizer = AutoTokenizer.from_pretrained(MODEL_ID=HF_TOKEN)
17
- model = AutoModelForTokenClassification.from_pretrained(MODEL_ID=HF_TOKEN)
18
 
19
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
20
  model.to(device)
 
12
  if not HF_TOKEN:
13
  raise RuntimeError("Missing BRAGD token secret.")
14
 
15
+ tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, token=HF_TOKEN)
16
+ model = AutoModelForTokenClassification.from_pretrained(MODEL_ID, token=HF_TOKEN)
 
17
 
18
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
19
  model.to(device)