Rename pull-model.sh to ollama.sh
Browse files
pull-model.sh → ollama.sh
RENAMED
@@ -1,9 +1,10 @@
|
|
1 |
#!/bin/sh
|
|
|
2 |
# Start Ollama in the background
|
|
|
|
|
3 |
ollama serve &
|
4 |
# Wait for the server to start
|
5 |
sleep 5
|
6 |
# Pull the model
|
7 |
-
ollama pull all-minilm
|
8 |
-
# Stop the background server
|
9 |
-
kill %1
|
|
|
1 |
#!/bin/sh
|
2 |
+
source /app/venv/bin/activate
|
3 |
# Start Ollama in the background
|
4 |
+
# Starting server
|
5 |
+
echo "Starting Ollama server"
|
6 |
ollama serve &
|
7 |
# Wait for the server to start
|
8 |
sleep 5
|
9 |
# Pull the model
|
10 |
+
ollama pull all-minilm
|
|
|
|