Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,8 +10,8 @@ CHECKPOINT_PATH= 'scratch_2-nodes_tokenizer_latbert-original_packing_fcocchi/mod
|
|
| 10 |
CHECKPOINT_PATH= 'itserr/latin_llm_alpha'
|
| 11 |
|
| 12 |
print(f"Loading model from: {CHECKPOINT_PATH}")
|
| 13 |
-
tokenizer = AutoTokenizer.from_pretrained(CHECKPOINT_PATH)
|
| 14 |
-
model = AutoModelForCausalLM.from_pretrained(CHECKPOINT_PATH)
|
| 15 |
|
| 16 |
description="""
|
| 17 |
This is a Latin Language Model (LLM) based on GPT-2 and it was trained on a large corpus of Latin texts and can generate text in Latin.
|
|
|
|
| 10 |
CHECKPOINT_PATH= 'itserr/latin_llm_alpha'
|
| 11 |
|
| 12 |
print(f"Loading model from: {CHECKPOINT_PATH}")
|
| 13 |
+
tokenizer = AutoTokenizer.from_pretrained(CHECKPOINT_PATH, token=st.secrets["HF_TOKEN"])
|
| 14 |
+
model = AutoModelForCausalLM.from_pretrained(CHECKPOINT_PATH, token=st.secrets["HF_TOKEN"])
|
| 15 |
|
| 16 |
description="""
|
| 17 |
This is a Latin Language Model (LLM) based on GPT-2 and it was trained on a large corpus of Latin texts and can generate text in Latin.
|