Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -149,8 +149,11 @@ def use_output_as_input(output_image):
|
|
| 149 |
return gr.update()
|
| 150 |
|
| 151 |
# Initialize Qwen Image Edit pipeline
|
| 152 |
-
#
|
| 153 |
dtype = torch.bfloat16
|
|
|
|
|
|
|
|
|
|
| 154 |
scheduler_config = {
|
| 155 |
"base_image_seq_len": 256,
|
| 156 |
"base_shift": math.log(3),
|
|
|
|
| 149 |
return gr.update()
|
| 150 |
|
| 151 |
# Initialize Qwen Image Edit pipeline
|
| 152 |
+
# --- Model Loading ---
|
| 153 |
dtype = torch.bfloat16
|
| 154 |
+
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 155 |
+
|
| 156 |
+
# Scheduler configuration for Lightning
|
| 157 |
scheduler_config = {
|
| 158 |
"base_image_seq_len": 256,
|
| 159 |
"base_shift": math.log(3),
|