justperquant commited on
Commit
f3f3ad1
·
verified ·
1 Parent(s): 8a82d95

Start the Flask API

Browse files
Files changed (1) hide show
  1. app/start.sh +10 -1
app/start.sh CHANGED
@@ -1,4 +1,13 @@
1
  #!/bin/bash
 
 
2
  ollama serve &
 
 
3
  sleep 5
4
- python main.py
 
 
 
 
 
 
1
  #!/bin/bash
2
+
3
+ # Start Ollama server in background
4
  ollama serve &
5
+
6
+ # Wait for Ollama server to be ready
7
  sleep 5
8
+
9
+ # Pull model at runtime (not during build)
10
+ ollama pull llama3
11
+
12
+ # Start the Flask API
13
+ python main.py