Spaces:
Runtime error
Runtime error
Update utility/utils.py
Browse files9 unmodified lines1011121314159 unmodified linesimport numpy as npfrom paddleocr import PaddleOCR# Load environment variables from .env fileload_dotenv()9 unmodified lines10111213141516171819202122232425269 unmodified linesimport numpy as npfrom paddleocr import PaddleOCR# Set the PaddleOCR home directory to a writable locationos.environ['PADDLEOCR_HOME'] = '/tmp/.paddleocr'# Check if PaddleOCR home directory is writableif not os.path.exists('/tmp/.paddleocr'):os.makedirs('/tmp/.paddleocr', exist_ok=True)logging.info("Created PaddleOCR home directory.")else:logging.info("PaddleOCR home directory exists.")# Load environment variables from .env fileload_dotenv()
utility/utils.py+11