Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ pipe.load_lora_weights(
|
|
| 52 |
)
|
| 53 |
pipe.fuse_lora()
|
| 54 |
|
| 55 |
-
pipe.transformer.__class__ = QwenImageTransformer2DModel
|
| 56 |
pipe.transformer.set_attn_processor(QwenDoubleStreamAttnProcessorFA3())
|
| 57 |
|
| 58 |
|
|
@@ -90,13 +90,21 @@ examples = [
|
|
| 90 |
"replace the object with a flower vase",
|
| 91 |
]
|
| 92 |
|
| 93 |
-
css="""
|
| 94 |
#col-container {
|
| 95 |
margin: 0 auto;
|
| 96 |
-
max-width:
|
| 97 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
"""
|
| 99 |
|
|
|
|
| 100 |
with gr.Blocks(css=css) as demo:
|
| 101 |
|
| 102 |
with gr.Column(elem_id="col-container"):
|
|
@@ -137,7 +145,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 137 |
max_lines=1,
|
| 138 |
placeholder="Enter what you don't want (optional)",
|
| 139 |
container=False,
|
| 140 |
-
value=""
|
|
|
|
| 141 |
)
|
| 142 |
run_button = gr.Button("Run")
|
| 143 |
|
|
@@ -176,7 +185,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 176 |
|
| 177 |
num_inference_steps = gr.Slider(
|
| 178 |
label="Number of inference steps",
|
| 179 |
-
minimum=
|
| 180 |
maximum=50,
|
| 181 |
step=1,
|
| 182 |
value=8,
|
|
|
|
| 52 |
)
|
| 53 |
pipe.fuse_lora()
|
| 54 |
|
| 55 |
+
# pipe.transformer.__class__ = QwenImageTransformer2DModel
|
| 56 |
pipe.transformer.set_attn_processor(QwenDoubleStreamAttnProcessorFA3())
|
| 57 |
|
| 58 |
|
|
|
|
| 90 |
"replace the object with a flower vase",
|
| 91 |
]
|
| 92 |
|
| 93 |
+
css = """
|
| 94 |
#col-container {
|
| 95 |
margin: 0 auto;
|
| 96 |
+
max-width: 1024px;
|
| 97 |
}
|
| 98 |
+
#logo-title {
|
| 99 |
+
text-align: center;
|
| 100 |
+
}
|
| 101 |
+
#logo-title img {
|
| 102 |
+
width: 400px;
|
| 103 |
+
}
|
| 104 |
+
#edit_text{margin-top: -62px !important}
|
| 105 |
"""
|
| 106 |
|
| 107 |
+
|
| 108 |
with gr.Blocks(css=css) as demo:
|
| 109 |
|
| 110 |
with gr.Column(elem_id="col-container"):
|
|
|
|
| 145 |
max_lines=1,
|
| 146 |
placeholder="Enter what you don't want (optional)",
|
| 147 |
container=False,
|
| 148 |
+
value="",
|
| 149 |
+
visible=False
|
| 150 |
)
|
| 151 |
run_button = gr.Button("Run")
|
| 152 |
|
|
|
|
| 185 |
|
| 186 |
num_inference_steps = gr.Slider(
|
| 187 |
label="Number of inference steps",
|
| 188 |
+
minimum=1,
|
| 189 |
maximum=50,
|
| 190 |
step=1,
|
| 191 |
value=8,
|