danghungithp commited on
Commit
3154263
·
verified ·
1 Parent(s): 882a04e

Create start.sh

Browse files
Files changed (1) hide show
  1. start.sh +10 -0
start.sh ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ echo "Starting Ollama..."
3
+ ollama serve &
4
+ echo "Waiting for Ollama to be ready..."
5
+ until curl -s http://localhost:11434 > /dev/null; do
6
+ echo "Ollama not ready yet, waiting..."
7
+ sleep 1
8
+ done
9
+ echo "Ollama is ready, starting app.py..."
10
+ python3 app.py