bego commited on
Commit
f9a2cc9
·
verified ·
1 Parent(s): e872dac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -7,6 +7,9 @@ import numpy as np
7
  from transformers import DistilBertTokenizer, DistilBertModel
8
  from huggingface_hub import hf_hub_download
9
 
 
 
 
10
  def corregir_codificacion(texto):
11
  if isinstance(texto, str):
12
  return ftfy.fix_text(texto)
 
7
  from transformers import DistilBertTokenizer, DistilBertModel
8
  from huggingface_hub import hf_hub_download
9
 
10
+ hf_token = os.getenv("HF_TOKEN")
11
+ login(token=hf_token)
12
+
13
  def corregir_codificacion(texto):
14
  if isinstance(texto, str):
15
  return ftfy.fix_text(texto)