whis / start.sh
Pavithiran's picture
Create start.sh
eef46a8 verified
raw
history blame contribute delete
402 Bytes
#!/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