Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -4,18 +4,16 @@ import spaces
|
|
4 |
import os
|
5 |
import numpy as np
|
6 |
from PIL import Image
|
7 |
-
from huggingface_hub import hf_hub_download
|
8 |
-
from safetensors.torch import load_file
|
9 |
from omegaconf import OmegaConf
|
10 |
|
11 |
from image_datasets.dataset import image_resize
|
12 |
-
|
13 |
args = OmegaConf.load("inference_configs/inference.yaml")
|
14 |
device = torch.device("cuda")
|
15 |
dtype = torch.bfloat16
|
16 |
@spaces.GPU
|
17 |
def generate(image: Image.Image, edit_prompt: str):
|
18 |
-
|
19 |
|
20 |
|
21 |
|
|
|
4 |
import os
|
5 |
import numpy as np
|
6 |
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 |
|