davanstrien HF staff commited on
Commit
fbee6fd
·
verified ·
1 Parent(s): 062863a

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -22,7 +22,7 @@ logger = logging.getLogger(__name__)
22
  app = FastAPI()
23
  load_dotenv()
24
  HF_TOKEN = os.getenv("HF_TOKEN")
25
-
26
  os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
27
 
28
  FASTTEXT_PREFIX_LENGTH = 9 # fasttext labels are formatted like "__label__eng_Latn"
 
22
  app = FastAPI()
23
  load_dotenv()
24
  HF_TOKEN = os.getenv("HF_TOKEN")
25
+ assert HF_TOKEN
26
  os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
27
 
28
  FASTTEXT_PREFIX_LENGTH = 9 # fasttext labels are formatted like "__label__eng_Latn"