Spaces:
Build error
Build error
Update entrypoint.sh
Browse files- entrypoint.sh +7 -4
entrypoint.sh
CHANGED
|
@@ -1,9 +1,12 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
-
# Start Ollama in the background
|
| 3 |
-
ollama serve &
|
| 4 |
|
| 5 |
-
#
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
# Start the FastAPI server
|
| 9 |
uvicorn app:app --host 0.0.0.0 --port 8000
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
+
# Start Ollama server in the background
|
| 3 |
+
/usr/bin/ollama serve &
|
| 4 |
|
| 5 |
+
# Wait briefly to ensure Ollama server is up
|
| 6 |
+
sleep 5
|
| 7 |
+
|
| 8 |
+
# Pull the model if not already downloaded
|
| 9 |
+
/usr/bin/ollama pull hf.co/Chun121/qwen3-4B-rpg-roleplay:Q4_K_M
|
| 10 |
|
| 11 |
# Start the FastAPI server
|
| 12 |
uvicorn app:app --host 0.0.0.0 --port 8000
|