Changed code so that Ollama closes gracefully
This commit is contained in:
parent
cf4a17b6eb
commit
e81d918675
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user