Spaces:
Build error
Build error
Update run.sh
Browse files
run.sh
CHANGED
@@ -1,8 +1,12 @@
|
|
1 |
#!/bin/bash
|
2 |
|
|
|
|
|
3 |
|
4 |
cd backend
|
|
|
5 |
# Start FastAPI app in the background on port 8000
|
6 |
uvicorn app:app --host 0.0.0.0 --port 8000 --workers 1 & echo $! > http_server.pid
|
|
|
7 |
# Start Nginx
|
8 |
nginx -g 'daemon off;'
|
|
|
1 |
#!/bin/bash
|
2 |
|
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;'
|