Update main.py
Browse files
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"
|