File size: 252 Bytes
bc2101b
 
 
 
 
 
 
 
 
 
76d98cb
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import ollama
import time

# Configure the Ollama server
ollama.setup(host="0.0.0.0", port=8000)

# Start the Ollama server
ollama.start()

# Wait for the server to be ready
#while True():
#time.sleep(10)  # Adjust the sleep duration as necessary