Streamline with fstrings (#1006)

* fstring #1

* fstring #2
This commit is contained in:
BBC-Esq 2024-07-18 09:48:46 -04:00 committed by GitHub
parent 6080fa38ce
commit ce971a0f3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2056,7 +2056,7 @@ def show_gui():
ctk.set_appearance_mode("dark") ctk.set_appearance_mode("dark")
root = ctk.CTk() root = ctk.CTk()
root.geometry(str(windowwidth) + "x" + str(windowheight)) root.geometry(str(windowwidth) + "x" + str(windowheight))
root.title("KoboldCpp v"+KcppVersion) root.title(f"KoboldCpp v{KcppVersion}")
gtooltip_box = None gtooltip_box = None
gtooltip_label = None gtooltip_label = None
@ -4070,7 +4070,7 @@ if __name__ == '__main__':
return f return f
return range_checker 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) # print("Python version: " + sys.version)
parser = argparse.ArgumentParser(description='KoboldCpp Server') parser = argparse.ArgumentParser(description='KoboldCpp Server')
modelgroup = parser.add_mutually_exclusive_group() #we want to be backwards compatible with the unnamed positional args modelgroup = parser.add_mutually_exclusive_group() #we want to be backwards compatible with the unnamed positional args