Spaces:
Running
Running
Echo-ai
commited on
Update start.sh
Browse files
start.sh
CHANGED
@@ -10,7 +10,7 @@ fi
|
|
10 |
# Wait for Ollama to start (up to 30 seconds)
|
11 |
max_attempts=30
|
12 |
attempt=0
|
13 |
-
while ! curl -s http://localhost:
|
14 |
sleep 1
|
15 |
attempt=$((attempt + 1))
|
16 |
if [ $attempt -eq $max_attempts ]; then
|
|
|
10 |
# Wait for Ollama to start (up to 30 seconds)
|
11 |
max_attempts=30
|
12 |
attempt=0
|
13 |
+
while ! curl -s http://localhost:7860/api/tags >/dev/null; do
|
14 |
sleep 1
|
15 |
attempt=$((attempt + 1))
|
16 |
if [ $attempt -eq $max_attempts ]; then
|