Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -203,6 +203,7 @@ pipe.transformer.__class__ = QwenImageTransformer2DModel
|
|
| 203 |
pipe.transformer.set_attn_processor(QwenDoubleStreamAttnProcessorFA3())
|
| 204 |
|
| 205 |
# --- Ahead-of-time compilation ---
|
|
|
|
| 206 |
|
| 207 |
# --- UI Constants and Helpers ---
|
| 208 |
MAX_SEED = np.iinfo(np.int32).max
|
|
|
|
| 203 |
pipe.transformer.set_attn_processor(QwenDoubleStreamAttnProcessorFA3())
|
| 204 |
|
| 205 |
# --- Ahead-of-time compilation ---
|
| 206 |
+
optimize_pipeline_(pipe, image=[Image.new("RGB", (1024, 1024)), Image.new("RGB", (1024, 1024))], prompt="prompt")
|
| 207 |
|
| 208 |
# --- UI Constants and Helpers ---
|
| 209 |
MAX_SEED = np.iinfo(np.int32).max
|