Update personality.py

This commit is contained in:
Saifeddine ALOUI 2024-02-08 15:13:00 +01:00 committed by GitHub
parent 59ec63a55d
commit a97d5e14d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -513,7 +513,7 @@ Date: {{date}}
self.bot_says = bot_says self.bot_says = bot_says
return True return True
def generate_with_images(self, prompt, images, max_size, temperature = None, top_k = None, top_p=None, repeat_penalty=None, callback=None, debug=False, show_progress=False ): 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 ):
ASCIIColors.info("Text generation started: Warming up") ASCIIColors.info("Text generation started: Warming up")
self.nb_received_tokens = 0 self.nb_received_tokens = 0
self.bot_says = "" self.bot_says = ""
@ -529,6 +529,7 @@ Date: {{date}}
top_k=self.model_top_k if top_k is None else top_k, top_k=self.model_top_k if top_k is None else top_k,
top_p=self.model_top_p if top_p is None else top_p, top_p=self.model_top_p if top_p is None else top_p,
repeat_penalty=self.model_repeat_penalty if repeat_penalty is None else repeat_penalty, repeat_penalty=self.model_repeat_penalty if repeat_penalty is None else repeat_penalty,
repeat_last_n = self.model_repeat_last_n if repeat_last_n is None else repeat_last_n
).strip() ).strip()
return self.bot_says return self.bot_says