ollama_server / app,py
broadfield-dev's picture
Update app,py
cc13c74 verified
raw
history blame contribute delete
279 Bytes
import ollama
import time
os.system('ollama serve')
'''# 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'''