kassemsabeh commited on
Commit
98ffc35
1 Parent(s): 0cff8fb

Fix authentication

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ max_target_length = 10
9
  auth_token = os.environ.get('TOKEN')
10
 
11
  model = T5ForConditionalGeneration.from_pretrained(model_id, use_auth_token=auth_token)
12
- tokenizer = AutoTokenizer.from_pretrained(model_id)
13
 
14
  def predict(title, category):
15
  input = f"{title} <hl> {category} <hl>"
 
9
  auth_token = os.environ.get('TOKEN')
10
 
11
  model = T5ForConditionalGeneration.from_pretrained(model_id, use_auth_token=auth_token)
12
+ tokenizer = AutoTokenizer.from_pretrained(model_id, use_auth_token=auth_token)
13
 
14
  def predict(title, category):
15
  input = f"{title} <hl> {category} <hl>"