From ce971a0f3d9e292d5fd860685571040a1a9f7964 Mon Sep 17 00:00:00 2001 From: BBC-Esq Date: Thu, 18 Jul 2024 09:48:46 -0400 Subject: [PATCH] Streamline with fstrings (#1006) * fstring #1 * fstring #2 --- koboldcpp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koboldcpp.py b/koboldcpp.py index 2a80219f9..1cfef65ac 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -2056,7 +2056,7 @@ def show_gui(): ctk.set_appearance_mode("dark") root = ctk.CTk() root.geometry(str(windowwidth) + "x" + str(windowheight)) - root.title("KoboldCpp v"+KcppVersion) + root.title(f"KoboldCpp v{KcppVersion}") gtooltip_box = None gtooltip_label = None @@ -4070,7 +4070,7 @@ if __name__ == '__main__': return f return range_checker - print("***\nWelcome to KoboldCpp - Version " + KcppVersion) # just update version manually + print(f"***\nWelcome to KoboldCpp - Version {KcppVersion}") # just update version manually # print("Python version: " + sys.version) parser = argparse.ArgumentParser(description='KoboldCpp Server') modelgroup = parser.add_mutually_exclusive_group() #we want to be backwards compatible with the unnamed positional args