trystine commited on
Commit
a8dd534
·
verified ·
1 Parent(s): ed02bef

Create start.sh

Browse files
Files changed (1) hide show
  1. start.sh +17 -0
start.sh ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # 1. Start Ollama server in the background
4
+ echo "Starting Ollama server..."
5
+ ollama serve &
6
+
7
+ # 2. Wait a few seconds for it to boot up
8
+ sleep 5
9
+
10
+ # 3. Pull the specific model you want to use
11
+ # *** IMPORTANT: Change 'llama3' if your app uses a different model! ***
12
+ echo "Pulling the Ollama model..."
13
+ ollama pull llama3
14
+
15
+ # 4. Start your Streamlit app
16
+ echo "Starting Streamlit..."
17
+ streamlit run fresh_app_v2.py --server.port=7860 --server.address=0.0.0.0