Stop existing instance before starting new one fallback
This commit is contained in:
parent
2e2626fa99
commit
12790b5ae1
@ -92,6 +92,7 @@ class instance():
|
||||
self.idle_timer.start()
|
||||
|
||||
def start(self):
|
||||
self.stop()
|
||||
if shutil.which('ollama'):
|
||||
if not os.path.isdir(os.path.join(cache_dir, 'tmp/ollama')):
|
||||
os.mkdir(os.path.join(cache_dir, 'tmp/ollama'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user