Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import torch
|
| 3 |
-
from diffusers import
|
| 4 |
-
from PIL import Image
|
| 5 |
from typing import List
|
| 6 |
#StableDiffusionImg2ImgPipeline
|
| 7 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
@@ -13,7 +12,6 @@ pipe = AutoPipelineForImage2Image.from_pretrained(
|
|
| 13 |
safety_checker=None
|
| 14 |
).to(device)
|
| 15 |
|
| 16 |
-
pipe.load_lora_weights("openfree/flux-chatgpt-ghibli-lora")
|
| 17 |
pipe.enable_attention_slicing()
|
| 18 |
|
| 19 |
styles = {
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import torch
|
| 3 |
+
from diffusers import StableDiffusionImg2ImgPipeline
|
|
|
|
| 4 |
from typing import List
|
| 5 |
#StableDiffusionImg2ImgPipeline
|
| 6 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 12 |
safety_checker=None
|
| 13 |
).to(device)
|
| 14 |
|
|
|
|
| 15 |
pipe.enable_attention_slicing()
|
| 16 |
|
| 17 |
styles = {
|