Spaces:
Runtime error
Runtime error
Update app/start.sh
Browse files- app/start.sh +3 -8
app/start.sh
CHANGED
|
@@ -1,13 +1,8 @@
|
|
| 1 |
#!/bin/bash
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
# Start Ollama server in background
|
| 4 |
ollama serve &
|
| 5 |
-
|
| 6 |
-
# Wait for Ollama server to be ready
|
| 7 |
sleep 5
|
| 8 |
-
|
| 9 |
-
# Pull model at runtime (not during build)
|
| 10 |
ollama pull llama3
|
| 11 |
-
|
| 12 |
-
# Start the Flask API
|
| 13 |
-
python main.py
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
+
export HOME=/root
|
| 3 |
+
export OLLAMA_MODELS=/root/.ollama/models
|
| 4 |
|
|
|
|
| 5 |
ollama serve &
|
|
|
|
|
|
|
| 6 |
sleep 5
|
|
|
|
|
|
|
| 7 |
ollama pull llama3
|
| 8 |
+
python main.py
|
|
|
|
|
|