JaphetHernandez commited on
Commit
204f860
·
verified ·
1 Parent(s): a34567e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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}")