Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -25,8 +25,8 @@ MAX_SEED = np.iinfo(np.int32).max
|
|
25 |
MAX_IMAGE_SIZE = int(os.getenv("MAX_IMAGE_SIZE", "1824"))
|
26 |
USE_TORCH_COMPILE = os.getenv("USE_TORCH_COMPILE") == "1"
|
27 |
ENABLE_CPU_OFFLOAD = os.getenv("ENABLE_CPU_OFFLOAD") == "1"
|
28 |
-
ENABLE_USE_LORA = os.getenv("ENABLE_USE_LORA"
|
29 |
-
ENABLE_USE_LORA2 = os.getenv("ENABLE_USE_LORA2"
|
30 |
ENABLE_USE_VAE = os.getenv("ENABLE_USE_VAE", "1") == "1"
|
31 |
ENABLE_USE_IMG2IMG = os.getenv("ENABLE_USE_IMG2IMG", "1") == "1"
|
32 |
ENABLE_USE_CONTROLNET = os.getenv("ENABLE_USE_CONTROLNET", "1") == "1"
|
@@ -271,8 +271,8 @@ with gr.Blocks(theme=theme, css="style.css") as demo:
|
|
271 |
use_controlnetimg2img = gr.Checkbox(label='Use Controlnet Img2Img', value=False, visible=ENABLE_USE_CONTROLNETIMG2IMG)
|
272 |
use_img2img = gr.Checkbox(label='Use Img2Img', value=False, visible=ENABLE_USE_IMG2IMG)
|
273 |
use_vae = gr.Checkbox(label='Use VAE', value=False, visible=ENABLE_USE_VAE)
|
274 |
-
use_lora = gr.Checkbox(label='Use Lora 1', value=False
|
275 |
-
use_lora2 = gr.Checkbox(label='Use Lora 2', value=False
|
276 |
use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=False)
|
277 |
use_prompt_2 = gr.Checkbox(label="Use prompt 2", value=False)
|
278 |
use_negative_prompt_2 = gr.Checkbox(label="Use negative prompt 2", value=False)
|
|
|
25 |
MAX_IMAGE_SIZE = int(os.getenv("MAX_IMAGE_SIZE", "1824"))
|
26 |
USE_TORCH_COMPILE = os.getenv("USE_TORCH_COMPILE") == "1"
|
27 |
ENABLE_CPU_OFFLOAD = os.getenv("ENABLE_CPU_OFFLOAD") == "1"
|
28 |
+
ENABLE_USE_LORA = os.getenv("ENABLE_USE_LORA") == "1"
|
29 |
+
ENABLE_USE_LORA2 = os.getenv("ENABLE_USE_LORA2") == "1"
|
30 |
ENABLE_USE_VAE = os.getenv("ENABLE_USE_VAE", "1") == "1"
|
31 |
ENABLE_USE_IMG2IMG = os.getenv("ENABLE_USE_IMG2IMG", "1") == "1"
|
32 |
ENABLE_USE_CONTROLNET = os.getenv("ENABLE_USE_CONTROLNET", "1") == "1"
|
|
|
271 |
use_controlnetimg2img = gr.Checkbox(label='Use Controlnet Img2Img', value=False, visible=ENABLE_USE_CONTROLNETIMG2IMG)
|
272 |
use_img2img = gr.Checkbox(label='Use Img2Img', value=False, visible=ENABLE_USE_IMG2IMG)
|
273 |
use_vae = gr.Checkbox(label='Use VAE', value=False, visible=ENABLE_USE_VAE)
|
274 |
+
use_lora = gr.Checkbox(label='Use Lora 1', value=False)
|
275 |
+
use_lora2 = gr.Checkbox(label='Use Lora 2', value=False)
|
276 |
use_negative_prompt = gr.Checkbox(label="Use negative prompt", value=False)
|
277 |
use_prompt_2 = gr.Checkbox(label="Use prompt 2", value=False)
|
278 |
use_negative_prompt_2 = gr.Checkbox(label="Use negative prompt 2", value=False)
|