Spaces:
Runtime error
Runtime error
File size: 402 Bytes
eef46a8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#!/bin/bash
# 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 |