Spaces:
Running
Running
Echo-ai
commited on
Create start.sh
Browse files
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
|