abanm commited on
Commit
c78218b
·
verified ·
1 Parent(s): 2e30346

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +3 -4
entrypoint.sh CHANGED
@@ -6,16 +6,15 @@ export OLLAMA_HOME=/home/appuser/.ollama
6
  # Start the Ollama server in the background
7
  ollama serve &
8
 
9
- # Wait for Ollama to initialize
10
  sleep 10
11
 
12
  # (Optional) Preload the Hugging Face model
13
- # Uncomment the line below to preload a specific model
14
- ollama run hf.co/abanm/Dubs-Q8_0-GGUF &
15
 
16
  # Navigate to the application directory
17
  cd /app
18
 
19
  # Start the FastAPI app using Uvicorn
20
  uvicorn app:app --host 0.0.0.0 --port 7860
21
-
 
6
  # Start the Ollama server in the background
7
  ollama serve &
8
 
9
+ # Wait for Ollama to initialize (this is arbitrary; you might tune it)
10
  sleep 10
11
 
12
  # (Optional) Preload the Hugging Face model
13
+ # Uncomment the line below if desired to warm up the model in Ollama
14
+ # ollama run hf.co/abanm/Dubs-Q8_0-GGUF &
15
 
16
  # Navigate to the application directory
17
  cd /app
18
 
19
  # Start the FastAPI app using Uvicorn
20
  uvicorn app:app --host 0.0.0.0 --port 7860