Skip to content

Commit

Permalink
Fix Assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
artitw committed Oct 7, 2024
1 parent 64331b0 commit 39094fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="text2text",
version="1.6.5",
version="1.6.6",
author="artitw",
author_email="artitw@gmail.com",
description="Text2Text: Crosslingual NLP/G toolkit",
Expand Down
2 changes: 1 addition & 1 deletion text2text/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def load_model(self):
response = requests.get("https://ollama.com/install.sh")
install_script = response.text
result = run_sh(install_script)
if "Install complete." not in result and "will run in CPU-only mode." not in result:
if result and "Install complete." not in result and "will run in CPU-only mode." not in result:
raise Exception(result)

self.ollama_serve_proc = subprocess.Popen(["ollama", "serve"])
Expand Down

0 comments on commit 39094fb

Please sign in to comment.