mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Add fix for status bar when chat mode ends early
This commit is contained in:
@@ -675,7 +675,7 @@ class model_settings(settings):
|
||||
self.tqdm.reset(total=self.genamt)
|
||||
self.tqdm_progress = 0
|
||||
else:
|
||||
self.tqdm.update(1)
|
||||
self.tqdm.update(value-self.tqdm.n)
|
||||
self.tqdm_progress = int(float(self.generated_tkns)/float(self.genamt)*100)
|
||||
if self.tqdm.format_dict['rate'] is not None:
|
||||
self.tqdm_rem_time = str(datetime.timedelta(seconds=int(float(self.genamt-self.generated_tkns)/self.tqdm.format_dict['rate'])))
|
||||
|
Reference in New Issue
Block a user