Spaces:
Runtime error
Runtime error
File size: 589 Bytes
2401907 e721bc0 2401907 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
from zigistry import constants
import os
from logging import error
def CorrectlyCompletedPreRequisites() -> bool:
for i in constants.FILES:
if not os.path.exists(i):
error(f"File {i} does not exist")
return False
if not os.path.exists(constants.PERSIST_DIR):
error(f"Directory {constants.PERSIST_DIR} does not exist")
return False
if constants.OR_TOKEN == None:
error("Hugging Face token not set")
return False
return True
def performPreRequisites():
os.makedirs(constants.PERSIST_DIR, exist_ok=True)
|