Spaces:
Build error
Build error
Update start_ollama.sh
Browse files- start_ollama.sh +1 -1
start_ollama.sh
CHANGED
@@ -6,7 +6,7 @@ ollama serve &
|
|
6 |
|
7 |
# Wait for the ollama server to start
|
8 |
echo "Waiting for ollama server to start..."
|
9 |
-
while !
|
10 |
sleep 1
|
11 |
done
|
12 |
echo "ollama server started"
|
|
|
6 |
|
7 |
# Wait for the ollama server to start
|
8 |
echo "Waiting for ollama server to start..."
|
9 |
+
while ! grep -q "Listening on 127.0.0.1:11434" <(tail -f ~/.ollama/log.txt); do
|
10 |
sleep 1
|
11 |
done
|
12 |
echo "ollama server started"
|