Spaces:
Runtime error
Runtime error
Update entrypoint.sh
Browse files- entrypoint.sh +11 -5
entrypoint.sh
CHANGED
|
@@ -35,16 +35,22 @@ echo "Ollama server is ready!"
|
|
| 35 |
|
| 36 |
# Pull the model with error handling
|
| 37 |
echo "Pulling the model..."
|
| 38 |
-
if ! ollama pull gemma3:270m; then
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
fi
|
| 42 |
|
| 43 |
-
if ! ollama pull nomic-embed-text; then
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
echo "ERROR: Failed to pull model gemma3:1b"
|
| 45 |
exit 1
|
| 46 |
fi
|
| 47 |
|
|
|
|
| 48 |
echo "Model pulled successfully!"
|
| 49 |
|
| 50 |
# Keep the container running and wait for the ollama process
|
|
|
|
| 35 |
|
| 36 |
# Pull the model with error handling
|
| 37 |
echo "Pulling the model..."
|
| 38 |
+
# if ! ollama pull gemma3:270m; then
|
| 39 |
+
# echo "ERROR: Failed to pull model smollm2:135m"
|
| 40 |
+
# exit 1
|
| 41 |
+
# fi
|
| 42 |
|
| 43 |
+
# if ! ollama pull nomic-embed-text; then
|
| 44 |
+
# echo "ERROR: Failed to pull model gemma3:1b"
|
| 45 |
+
# exit 1
|
| 46 |
+
# fi
|
| 47 |
+
|
| 48 |
+
if ! ollama pull embeddinggemma; then
|
| 49 |
echo "ERROR: Failed to pull model gemma3:1b"
|
| 50 |
exit 1
|
| 51 |
fi
|
| 52 |
|
| 53 |
+
|
| 54 |
echo "Model pulled successfully!"
|
| 55 |
|
| 56 |
# Keep the container running and wait for the ollama process
|