Echo-ai commited on
Commit
105f62d
·
verified ·
1 Parent(s): d4cf394

Create start.sh

Browse files
Files changed (1) hide show
  1. start.sh +8 -0
start.sh ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Pull a small model (e.g., TinyLlama) if not present
3
+ if ! ollama list | grep -q "tinyllama"; then
4
+ ollama pull tinyllama
5
+ fi
6
+
7
+ # Start Ollama on port 7860 in the foreground
8
+ exec ollama serve --port 7860 --host 0.0.0.0