Spaces:
Runtime error
Runtime error
# Create cache directories | |
mkdir -p /tmp/transformers_cache /tmp/hf_home /tmp/hf_hub_cache /tmp/matplotlib_config | |
# Set proper permissions | |
chmod 777 /tmp/transformers_cache /tmp/hf_home /tmp/hf_hub_cache /tmp/matplotlib_config | |
# Pre-download the model to cache | |
echo "Pre-downloading model..." | |
python3 download_model.py | |
# Start the Gradio app | |
echo "Starting Gradio app..." | |
python3 app.py |