Add basic authentication option for webUI image generation

This commit is contained in:
ebolam
2023-02-09 10:54:38 -05:00
parent 5aca142034
commit b29d4cef29
5 changed files with 40 additions and 3 deletions

View File

@@ -1164,6 +1164,8 @@ class user_settings(settings):
self.img_gen_api_url = "http://127.0.0.1:7860"
self.img_gen_art_guide = "masterpiece, digital painting, <|>, dramatic lighting, highly detailed, trending"
self.img_gen_negative_prompt = "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, artist name"
self.img_gen_api_username = ""
self.img_gen_api_password = ""
self.img_gen_steps = 30
self.img_gen_cfg_scale = 7.0
self.cluster_requested_models = [] # The models which we allow to generate during cluster mode