Changed code so that Ollama closes gracefully

This commit is contained in:
jeffser 2024-07-03 17:12:31 -06:00
parent cf4a17b6eb
commit e81d918675

View File

@ -20,7 +20,7 @@ def start():
def stop(): def stop():
global instance global instance
if instance: if instance:
instance.kill() instance.terminate()
instance.wait() instance.wait()
instance = None instance = None
print("Stopped Alpaca's Ollama instance") print("Stopped Alpaca's Ollama instance")