Quick fix local instance
This commit is contained in:
parent
a94d1dfc92
commit
a9663b45fc
@ -1,3 +1,3 @@
|
||||
ru
|
||||
es
|
||||
pt_BR
|
||||
pt_BR
|
@ -21,3 +21,7 @@ def stop():
|
||||
if instance: instance.kill()
|
||||
print("Stopped Alpaca's Ollama instance")
|
||||
|
||||
def reset(data_dir):
|
||||
stop()
|
||||
sleep(1)
|
||||
start(data_dir)
|
||||
|
@ -787,8 +787,7 @@ class AlpacaWindow(Adw.ApplicationWindow):
|
||||
if self.run_remote:
|
||||
dialogs.reconnect_remote(self)
|
||||
else:
|
||||
local_instance.stop()
|
||||
local_instance.start(self.data_dir)
|
||||
local_instance.reset(self.data_dir)
|
||||
self.show_toast("error", 7, self.main_overlay)
|
||||
|
||||
def connection_switched(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user