Skip to content

Commit

Permalink
Merge pull request #32 from Project-Llama/actions/black
Browse files Browse the repository at this point in the history
Format Python code with psf/black push
  • Loading branch information
Zander Lewis authored May 26, 2024
2 parents 5ab8ef2 + 0559ab2 commit 4e3ec95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion llamascript/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@

dbg = False


def debug(message):
if dbg:
print(message)


# Set up logging
logging.basicConfig(level=logging.WARNING)

Expand Down Expand Up @@ -150,7 +152,7 @@ async def read(self, filename):
}
self.CREATE_MODEL("Modelfile", parameters, model_name)
elif command[0] == "CHAT":
if len(command) > 1 and command[1] == "STREAM":\
if len(command) > 1 and command[1] == "STREAM":
self.CHAT(stream=True)
else:
self.CHAT()
Expand Down
2 changes: 1 addition & 1 deletion upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
subprocess.run(["rm", "-r", "llamascript.egg-info"])

subprocess.run(["python3", "setup.py", "sdist", "bdist_wheel"])
subprocess.run(["twine", "upload", "dist/*"])
subprocess.run(["twine", "upload", "dist/*"])

0 comments on commit 4e3ec95

Please sign in to comment.