Alexander Bagus commited on
Commit
b48d565
·
1 Parent(s): 6655790
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -27,10 +27,10 @@ weight_dtype = torch.bfloat16
27
  transformer = ZImageControlTransformer2DModel.from_pretrained(
28
  MODEL_LOCAL,
29
  subfolder="transformer",
30
- transformer_additional_kwargs={
31
- "control_layers_places": [0, 5, 10, 15, 20, 25],
32
- "control_in_dim": 16
33
- },
34
  ).to("cuda", torch.bfloat16)
35
 
36
  if TRANSFORMER_LOCAL is not None:
@@ -175,7 +175,7 @@ with gr.Blocks(css=css) as demo:
175
  is_polish_prompt = gr.Checkbox(label="Polish prompt", value=True)
176
  prompt = gr.Textbox(
177
  label="Prompt",
178
- show_label=False,
179
  lines=2,
180
  placeholder="Enter your prompt",
181
  container=False,
 
27
  transformer = ZImageControlTransformer2DModel.from_pretrained(
28
  MODEL_LOCAL,
29
  subfolder="transformer",
30
+ # transformer_additional_kwargs={
31
+ # "control_layers_places": [0, 5, 10, 15, 20, 25],
32
+ # "control_in_dim": 16
33
+ # },
34
  ).to("cuda", torch.bfloat16)
35
 
36
  if TRANSFORMER_LOCAL is not None:
 
175
  is_polish_prompt = gr.Checkbox(label="Polish prompt", value=True)
176
  prompt = gr.Textbox(
177
  label="Prompt",
178
+ # show_label=False,
179
  lines=2,
180
  placeholder="Enter your prompt",
181
  container=False,