Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/*"])