Wontonious commited on
Commit
779a90b
1 Parent(s): 80abfe1
Files changed (1) hide show
  1. App.py +2 -2
App.py CHANGED
@@ -18,8 +18,8 @@ def translate():
18
  article_en = request.form['original_text']
19
  translate_code = request.form['translate_code']
20
  access_token = app.config["HUGGINGFACE_TOKEN"]
21
- tokenizer = AutoTokenizer.from_pretrained("SnypzZz/Llama2-13b-Language-translate", token=access_token)
22
- model = AutoModelForSeq2SeqLM.from_pretrained("SnypzZz/Llama2-13b-Language-translate", token=access_token)
23
 
24
  model_inputs = tokenizer(article_en, return_tensors="pt")
25
 
 
18
  article_en = request.form['original_text']
19
  translate_code = request.form['translate_code']
20
  access_token = app.config["HUGGINGFACE_TOKEN"]
21
+ tokenizer = AutoTokenizer.from_pretrained("SnypzZz/Llama2-13b-Language-translate", token="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")
22
+ model = AutoModelForSeq2SeqLM.from_pretrained("SnypzZz/Llama2-13b-Language-translate", token="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")
23
 
24
  model_inputs = tokenizer(article_en, return_tensors="pt")
25