Pavithiran commited on
Commit
eef46a8
·
verified ·
1 Parent(s): 2215b0d

Create start.sh

Browse files
Files changed (1) hide show
  1. start.sh +15 -0
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