sunshineccl commited on
Commit
cebd69a
1 Parent(s): b425559

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,9 +5,9 @@ import torch
5
  access_token = "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"
6
 
7
  #set up the model
8
- tokenizer = AutoTokenizer.from_pretrained("mental/mental-bert-base-uncased" )
9
 
10
- model = AutoModel.from_pretrained("mental/mental-bert-base-uncased" )
11
 
12
  #Defining a predict function
13
  def predict(input, history=[]):
 
5
  access_token = "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"
6
 
7
  #set up the model
8
+ tokenizer = AutoTokenizer.from_pretrained("mental/mental-bert-base-uncased", use_auth_token = access_token )
9
 
10
+ model = AutoModel.from_pretrained("mental/mental-bert-base-uncased", use_auth_token = access_token )
11
 
12
  #Defining a predict function
13
  def predict(input, history=[]):