Spaces:
Sleeping
Sleeping
Update entrypoint.sh
Browse files- entrypoint.sh +4 -4
entrypoint.sh
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
# Starting Ollama server
|
4 |
-
echo "Starting server"
|
5 |
ollama serve &
|
6 |
|
7 |
# Give Ollama some time to initialize
|
@@ -15,9 +15,9 @@ for m in "${MODELS[@]}"; do
|
|
15 |
sleep 5
|
16 |
done
|
17 |
|
18 |
-
# Start the app
|
19 |
-
echo "Starting app
|
20 |
-
|
21 |
|
22 |
# Keep the container running
|
23 |
wait
|
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
# Starting Ollama server
|
4 |
+
echo "Starting Ollama server..."
|
5 |
ollama serve &
|
6 |
|
7 |
# Give Ollama some time to initialize
|
|
|
15 |
sleep 5
|
16 |
done
|
17 |
|
18 |
+
# Start the Streamlit app
|
19 |
+
echo "Starting Streamlit app..."
|
20 |
+
streamlit run /app.py --server.port 7860 --server.address 0.0.0.0 &
|
21 |
|
22 |
# Keep the container running
|
23 |
wait
|