Spaces:
Sleeping
Sleeping
Commit History
-
Update Dockerfile to include test_permissions.py and enhance startup script for environment verification
- Added test_permissions.py to the Dockerfile to verify environment setup. - Modified the startup script to run the environment test before launching the Streamlit app, improving error handling and logging for environment validation.442515d -
test
04fd216 -
Add test_permissions.py to Dockerfile for environment setup verification
3ad7261 -
Enhance Dockerfile and Streamlit app for comprehensive environment setup and permission testing
- Implemented extensive environment variable configurations to redirect cache directories for Hugging Face and other ML libraries to writable locations. - Added a startup script in the Dockerfile to ensure environment variables are set before the application runs. - Updated the Streamlit app to configure environment variables immediately and perform necessary directory creation with error handling. - Introduced a test script to verify environment setup and permissions, ensuring the application runs smoothly in Hugging Face Spaces.98aae70 -
Add environment variable configuration and directory creation for ML libraries
- Introduced environment variables for TORCH_HOME, TENSORFLOW_HOME, and KERAS_HOME to manage library directories. - Implemented robust directory creation with error handling and fallback mechanisms to ensure stability. - Enhanced logging to provide feedback on directory creation processes and any encountered issues.5a08ed8 -
Enhance Dockerfile and Streamlit app for Hugging Face directory management
- Updated Dockerfile to create additional directories for Hugging Face caching with appropriate permissions. - Enhanced Streamlit app to configure environment variables for Hugging Face and implement robust directory creation with error handling and logging. - Improved fallback mechanisms for directory creation to ensure stability in various environments.ca54b04 -
Enhance Dockerfile and Streamlit app for EasyOCR directory management
- Updated Dockerfile to create additional temporary directories with proper permissions for EasyOCR. - Improved Streamlit app to set environment variables for EasyOCR and create necessary directories, enhancing error handling and logging for directory creation. - Documented changes in TROUBLESHOOTING.md to address potential permission errors and environment variable configurations.1dc37e8 -
Configure EasyOCR model storage with enhanced error handling and logging
- Set up a writable directory for EasyOCR model storage, with a primary path in a temporary directory and fallbacks to /tmp and the current working directory. - Improved logging to provide feedback on the model directory creation process and any issues encountered.cbcf1e4 -
Refactor Dockerfile to create Streamlit configuration directly
- Removed the copy of the .streamlit directory and replaced it with a RUN command to generate the Streamlit config file within the Dockerfile. - Configured various Streamlit settings for production use, including server settings and theme customization.9626485 -
Enhance Dockerfile and Streamlit app for improved temporary file management
- Added directory creation and permission settings in Dockerfile for temp files. - Updated Streamlit app to use system temp directory, with fallback options for permission issues. - Improved error handling and logging for temp file operations, ensuring better user feedback and stability.479ced5
-
Duplicate from streamlit/streamlit-template-space
Verified signatureCo-authored-by: Franck Abgrall <FranckAbgrall@users.noreply.huggingface.co>73d57ae