Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,14 +7,13 @@ from PIL import Image
|
|
| 7 |
from omegaconf import OmegaConf
|
| 8 |
|
| 9 |
from image_datasets.dataset import image_resize
|
| 10 |
-
from src.flux.xflux_pipeline import XFluxSampler
|
| 11 |
args = OmegaConf.load("inference_configs/inference.yaml")
|
| 12 |
device = torch.device("cuda")
|
| 13 |
dtype = torch.bfloat16
|
| 14 |
@spaces.GPU
|
| 15 |
def generate(image: Image.Image, edit_prompt: str):
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
|
| 20 |
sampler = XFluxSampler(
|
|
|
|
| 7 |
from omegaconf import OmegaConf
|
| 8 |
|
| 9 |
from image_datasets.dataset import image_resize
|
|
|
|
| 10 |
args = OmegaConf.load("inference_configs/inference.yaml")
|
| 11 |
device = torch.device("cuda")
|
| 12 |
dtype = torch.bfloat16
|
| 13 |
@spaces.GPU
|
| 14 |
def generate(image: Image.Image, edit_prompt: str):
|
| 15 |
|
| 16 |
+
from src.flux.xflux_pipeline import XFluxSampler
|
| 17 |
|
| 18 |
|
| 19 |
sampler = XFluxSampler(
|