Echo-ai commited on
Commit
fc2083e
·
verified ·
1 Parent(s): 173c617

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +2 -3
start.sh CHANGED
@@ -1,7 +1,7 @@
1
  #!/bin/bash
2
  # Start Ollama in the background
3
- ollama serve &
4
-
5
  # Pull a small model (e.g., TinyLlama) if not present
6
  if ! ollama list | grep -q "tinyllama"; then
7
  ollama pull tinyllama
@@ -21,4 +21,3 @@ done
21
  echo "Ollama is ready."
22
 
23
  # Start the FastAPI server
24
- uvicorn app:app --host 0.0.0.0 --port 7860
 
1
  #!/bin/bash
2
  # Start Ollama in the background
3
+ #ollama serve &
4
+ ollama serve --port 7860 --host 0.0.0.0
5
  # Pull a small model (e.g., TinyLlama) if not present
6
  if ! ollama list | grep -q "tinyllama"; then
7
  ollama pull tinyllama
 
21
  echo "Ollama is ready."
22
 
23
  # Start the FastAPI server