Stop existing instance before starting new one fallback
This commit is contained in:
1 parent
2e2626fa99
commit
12790b5ae1
1 file changed
+1
@@ -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'))
|
||||
|
||||
Reference in new issue
Block a user