Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,8 @@ import spaces
|
|
3 |
|
4 |
import torch
|
5 |
from diffusers import FluxPipeline
|
|
|
|
|
6 |
from huggingface_hub.utils import RepositoryNotFoundError
|
7 |
|
8 |
pipeline = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.float16).to("cuda")
|
|
|
3 |
|
4 |
import torch
|
5 |
from diffusers import FluxPipeline
|
6 |
+
from diffusers import FluxImg2ImgPipeline
|
7 |
+
from diffusers.utils import load_image
|
8 |
from huggingface_hub.utils import RepositoryNotFoundError
|
9 |
|
10 |
pipeline = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.float16).to("cuda")
|