Skip to content

Commit

Permalink
fix: set webui default to be more reasonable for LoRas
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Jun 21, 2023
1 parent af25945 commit bab6c7b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,9 @@ class WebUI:
"LoRa requested which you do not have, and cache that for a number a days",
},
"max_lora_cache_size": {
"label": "Use this setting to control how much extra space LoRas can take after you downloaded the Top",
"info": "If a new Lora would exceed this space, an old lora you've downloaded previously will be deleted. "
"label": "Lora Cache Size (In gigabytes!) ",
"info": "Use this setting to control how much extra space LoRas can take after you downloaded the Top."
"If a new Lora would exceed this space, an old lora you've downloaded previously will be deleted. "
"!Note! THIS IS ON TOP OF THE CURATED LORAs, so plan around +5G more than this",
},
"disable_terminal_ui": {
Expand Down Expand Up @@ -554,13 +555,13 @@ def initialise(self):
value=config.allow_lora,
info=self._info("allow_lora"),
)
config.default("max_lora_cache_size", False)
config.default("max_lora_cache_size", 10)
max_lora_cache_size = gr.Slider(
label=self._label("max_lora_cache_size"),
value=config.max_lora_cache_size,
info=self._info("max_lora_cache_size"),
minimum=10,
maximum=8192,
maximum=1024,
step=1,
)
config.default("forms", [])
Expand Down

0 comments on commit bab6c7b

Please sign in to comment.