Spaces:
Sleeping
Sleeping
Update start.sh
Browse files
start.sh
CHANGED
@@ -12,6 +12,10 @@ until curl -s http://localhost:11434/api/tags > /dev/null; do
|
|
12 |
done
|
13 |
echo "Ollama is ready!"
|
14 |
|
|
|
|
|
|
|
|
|
15 |
echo "Starting Streamlit app..."
|
16 |
streamlit run streamlit_app.py --server.port=8501 --server.enableCORS=false --server.enableXsrfProtection=false
|
17 |
|
|
|
12 |
done
|
13 |
echo "Ollama is ready!"
|
14 |
|
15 |
+
MODEL_NAME="gemma3"
|
16 |
+
echo "Pulling Ollama model: ${MODEL_NAME}..."
|
17 |
+
ollama pull "${MODEL_NAME}" || { echo "Failed to pull model ${MODEL_NAME}. Exiting."; exit 1; }
|
18 |
+
|
19 |
echo "Starting Streamlit app..."
|
20 |
streamlit run streamlit_app.py --server.port=8501 --server.enableCORS=false --server.enableXsrfProtection=false
|
21 |
|