Spaces:
Runtime error
Runtime error
russkiyximik commited on
Commit ·
58204bc
1
Parent(s): ff6e450
removed ollama .sh startup
Browse files- entrypoint.sh +10 -10
entrypoint.sh
CHANGED
|
@@ -4,18 +4,18 @@ set -x # Enable command tracing for debugging
|
|
| 4 |
|
| 5 |
export PATH="$HOME/.local/bin:$PATH"
|
| 6 |
|
| 7 |
-
# Start Ollama server in the background
|
| 8 |
-
ollama serve &
|
| 9 |
|
| 10 |
-
# Wait for the server to be ready
|
| 11 |
-
while ! nc -z localhost 7860; do
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
done
|
| 15 |
|
| 16 |
-
# Pull the model
|
| 17 |
-
echo "Pulling the model..."
|
| 18 |
-
ollama pull gemma3:1b
|
| 19 |
|
| 20 |
# Start streamlit app
|
| 21 |
streamlit run mycoder/app.py --server.port=8501 --server.enableCORS=false
|
|
|
|
| 4 |
|
| 5 |
export PATH="$HOME/.local/bin:$PATH"
|
| 6 |
|
| 7 |
+
# # Start Ollama server in the background
|
| 8 |
+
# ollama serve &
|
| 9 |
|
| 10 |
+
# # Wait for the server to be ready
|
| 11 |
+
# while ! nc -z localhost 7860; do
|
| 12 |
+
# echo "Waiting for Ollama server to start..."
|
| 13 |
+
# sleep 1
|
| 14 |
+
# done
|
| 15 |
|
| 16 |
+
# # Pull the model
|
| 17 |
+
# echo "Pulling the model..."
|
| 18 |
+
# ollama pull gemma3:1b
|
| 19 |
|
| 20 |
# Start streamlit app
|
| 21 |
streamlit run mycoder/app.py --server.port=8501 --server.enableCORS=false
|