Spaces:
Build error
Build error
Update run.sh
Browse files
run.sh
CHANGED
|
@@ -3,10 +3,13 @@
|
|
| 3 |
# Serve the ollama model in the background
|
| 4 |
ollama serve &
|
| 5 |
|
|
|
|
|
|
|
|
|
|
| 6 |
cd backend
|
| 7 |
|
| 8 |
# Start FastAPI app in the background on port 8000
|
| 9 |
uvicorn app:app --host 0.0.0.0 --port 8000 --workers 1 & echo $! > http_server.pid
|
| 10 |
|
| 11 |
# Start Nginx
|
| 12 |
-
nginx -g 'daemon off;'
|
|
|
|
| 3 |
# Serve the ollama model in the background
|
| 4 |
ollama serve &
|
| 5 |
|
| 6 |
+
# Pull the phi3 model
|
| 7 |
+
ollama pull phi3
|
| 8 |
+
|
| 9 |
cd backend
|
| 10 |
|
| 11 |
# Start FastAPI app in the background on port 8000
|
| 12 |
uvicorn app:app --host 0.0.0.0 --port 8000 --workers 1 & echo $! > http_server.pid
|
| 13 |
|
| 14 |
# Start Nginx
|
| 15 |
+
nginx -g 'daemon off;'
|