Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ParisNeo committed Sep 5, 2024
1 parent 86238fe commit 743c1c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lollms/personality.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ def process(self, text:str, message_type:MSG_OPERATION_TYPE, callback=None, show
self.bot_says = bot_says
return True

def generate_with_images(self, prompt, images, max_size, temperature = None, top_k = None, top_p=None, repeat_penalty=None, repeat_last_n=None, callback=None, debug=False, show_progress=False ):
def generate_with_images(self, prompt, images, max_size=None, temperature = None, top_k = None, top_p=None, repeat_penalty=None, repeat_last_n=None, callback=None, debug=False, show_progress=False ):
ASCIIColors.info("Text generation started: Warming up")
self.nb_received_tokens = 0
self.bot_says = ""
Expand Down Expand Up @@ -2427,7 +2427,7 @@ def generate_code(self, prompt, images=[], max_size = None, temperature = None,
else:
code +="\n"+ "\n".join(codes[-1]["content"].split("\n"))
else:
code = "\n".join(codes[-1]["content"].split("\n"))
code = codes[-1]["content"]

return code
else:
Expand Down

0 comments on commit 743c1c6

Please sign in to comment.