Spaces:
Sleeping
Sleeping
JaphetHernandez
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ if uploaded_file:
|
|
29 |
model_name = "meta-llama/Llama-3.2-1B"
|
30 |
modelo = LlamaForCausalLM.from_pretrained(model_name)
|
31 |
try:
|
32 |
-
tokenizer = LlamaTokenizer.from_pretrained(model_name, force_download=True)
|
33 |
print("Vocab file:", tokenizer.vocab_file) # Depurar el archivo de vocabulario
|
34 |
except Exception as e:
|
35 |
print(f"Error al cargar el tokenizador: {e}")
|
|
|
29 |
model_name = "meta-llama/Llama-3.2-1B"
|
30 |
modelo = LlamaForCausalLM.from_pretrained(model_name)
|
31 |
try:
|
32 |
+
tokenizer = LlamaTokenizer.from_pretrained(model_name, force_download=True, legacy = True)
|
33 |
print("Vocab file:", tokenizer.vocab_file) # Depurar el archivo de vocabulario
|
34 |
except Exception as e:
|
35 |
print(f"Error al cargar el tokenizador: {e}")
|