Spaces:
Running
on
Zero
Running
on
Zero
bo.l
commited on
Commit
·
7eff547
1
Parent(s):
438bbb4
import model
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import random
|
|
| 4 |
import spaces #[uncomment to use ZeroGPU]
|
| 5 |
from kontext.pipeline_flux_kontext import FluxKontextPipeline
|
| 6 |
from kontext.scheduling_flow_match_euler_discrete import FlowMatchEulerDiscreteScheduler
|
|
|
|
| 7 |
import torch
|
| 8 |
|
| 9 |
def resize_by_bucket(images_pil, resolution=512):
|
|
|
|
| 4 |
import spaces #[uncomment to use ZeroGPU]
|
| 5 |
from kontext.pipeline_flux_kontext import FluxKontextPipeline
|
| 6 |
from kontext.scheduling_flow_match_euler_discrete import FlowMatchEulerDiscreteScheduler
|
| 7 |
+
from diffusers import FluxTransformer2DModel
|
| 8 |
import torch
|
| 9 |
|
| 10 |
def resize_by_bucket(images_pil, resolution=512):
|