Spaces:
Runtime error
Runtime error
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -43,7 +43,11 @@ pipe.set_adapters(["angles"], adapter_weights=[1.])
|
|
| 43 |
pipe.fuse_lora(adapter_names=["angles"], lora_scale=1.25)
|
| 44 |
pipe.unload_lora_weights()
|
| 45 |
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
MAX_SEED = np.iinfo(np.int32).max
|
| 49 |
|
|
|
|
| 43 |
pipe.fuse_lora(adapter_names=["angles"], lora_scale=1.25)
|
| 44 |
pipe.unload_lora_weights()
|
| 45 |
|
| 46 |
+
# Optional: AOTI optimization (may not be available on all instances)
|
| 47 |
+
try:
|
| 48 |
+
spaces.aoti_blocks_load(pipe.transformer, "zerogpu-aoti/Qwen-Image", variant="fa3")
|
| 49 |
+
except Exception as e:
|
| 50 |
+
print(f"AOTI optimization not available: {e}")
|
| 51 |
|
| 52 |
MAX_SEED = np.iinfo(np.int32).max
|
| 53 |
|