Create start-ollama.sh
Browse files- start-ollama.sh +17 -0
start-ollama.sh
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
# Start ollama server in the background
|
4 |
+
ollama serve &
|
5 |
+
|
6 |
+
# Wait for the server to be ready
|
7 |
+
sleep 10
|
8 |
+
|
9 |
+
# Execute ollama pull commands
|
10 |
+
ollama pull gemma:7b
|
11 |
+
ollama pull bakllava
|
12 |
+
|
13 |
+
# Run the Python script
|
14 |
+
python3 ollama.py
|
15 |
+
|
16 |
+
# Keep the container running
|
17 |
+
wait
|