Spaces:
Runtime error
Runtime error
Update utility/utils.py
Browse files9 unmodified lines10111213141516171819202122232425269 unmodified linesimport numpy as npfrom paddleocr import PaddleOCR
# Set the PaddleOCR home directory to a writable location
os.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