Spaces:
Runtime error
Runtime error
Create start.sh
Browse files
start.sh
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
# Create cache directories
|
4 |
+
mkdir -p /tmp/transformers_cache /tmp/hf_home /tmp/hf_hub_cache /tmp/matplotlib_config
|
5 |
+
|
6 |
+
# Set proper permissions
|
7 |
+
chmod 777 /tmp/transformers_cache /tmp/hf_home /tmp/hf_hub_cache /tmp/matplotlib_config
|
8 |
+
|
9 |
+
# Pre-download the model to cache
|
10 |
+
echo "Pre-downloading model..."
|
11 |
+
python3 download_model.py
|
12 |
+
|
13 |
+
# Start the Gradio app
|
14 |
+
echo "Starting Gradio app..."
|
15 |
+
python3 app.py
|