Spaces:
Sleeping
Sleeping
bego
commited on
Update app.py
Browse files
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)
|