Spaces:
Build error
Build error
Create start_ollama.sh
Browse files- start_ollama.sh +14 -0
start_ollama.sh
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
|
3 |
+
# Start ollama server
|
4 |
+
echo "Starting ollama server"
|
5 |
+
ollama serve &
|
6 |
+
sleep 1
|
7 |
+
|
8 |
+
# Pull the phi3 model
|
9 |
+
echo "Pulling phi3 model"
|
10 |
+
ollama pull phi3
|
11 |
+
sleep 5
|
12 |
+
|
13 |
+
# Run the run.sh script
|
14 |
+
bash run.sh
|