Spaces:
Running
Running
Echo-ai
commited on
Update start.sh
Browse files
start.sh
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
#!/bin/bash
|
2 |
# Start Ollama in the background
|
3 |
-
ollama serve &
|
4 |
-
|
5 |
# Pull a small model (e.g., TinyLlama) if not present
|
6 |
if ! ollama list | grep -q "tinyllama"; then
|
7 |
ollama pull tinyllama
|
@@ -21,4 +21,3 @@ done
|
|
21 |
echo "Ollama is ready."
|
22 |
|
23 |
# Start the FastAPI server
|
24 |
-
uvicorn app:app --host 0.0.0.0 --port 7860
|
|
|
1 |
#!/bin/bash
|
2 |
# Start Ollama in the background
|
3 |
+
#ollama serve &
|
4 |
+
ollama serve --port 7860 --host 0.0.0.0
|
5 |
# Pull a small model (e.g., TinyLlama) if not present
|
6 |
if ! ollama list | grep -q "tinyllama"; then
|
7 |
ollama pull tinyllama
|
|
|
21 |
echo "Ollama is ready."
|
22 |
|
23 |
# Start the FastAPI server
|
|