Spaces:
No application file
No application file
Wontonious
commited on
Commit
•
779a90b
1
Parent(s):
80abfe1
test
Browse files
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=
|
22 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("SnypzZz/Llama2-13b-Language-translate", 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 |
|