abanm commited on
Commit
e2f0817
·
verified ·
1 Parent(s): 30d2eb7

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +7 -0
entrypoint.sh CHANGED
@@ -19,4 +19,11 @@ cd /app
19
  # Start the FastAPI app using Uvicorn
20
  uvicorn app:app --host 0.0.0.0 --port 7860
21
 
 
 
 
 
 
 
 
22
 
 
19
  # Start the FastAPI app using Uvicorn
20
  uvicorn app:app --host 0.0.0.0 --port 7860
21
 
22
+ # Wait for Ollama to initialize and ensure it's ready
23
+ until curl -sf http://localhost:port/health; do
24
+ echo "Waiting for Ollama..."
25
+ sleep 2
26
+ done
27
+
28
+
29