Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,9 @@ from diffusers import StableDiffusionXLPipeline, DDIMScheduler
|
|
| 3 |
import torch
|
| 4 |
import sa_handler
|
| 5 |
import math
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# init models
|
| 8 |
|
|
@@ -21,10 +24,6 @@ pipeline.enable_vae_slicing()
|
|
| 21 |
|
| 22 |
# DDIM inversion
|
| 23 |
|
| 24 |
-
from diffusers.utils import load_image
|
| 25 |
-
import inversion
|
| 26 |
-
import numpy as np
|
| 27 |
-
|
| 28 |
def run(ref_path, ref_style, ref_prompt, prompt1, prompt2, prompt3):
|
| 29 |
|
| 30 |
src_style = f"{ref_style}"
|
|
|
|
| 3 |
import torch
|
| 4 |
import sa_handler
|
| 5 |
import math
|
| 6 |
+
from diffusers.utils import load_image
|
| 7 |
+
import inversion
|
| 8 |
+
import numpy as np
|
| 9 |
|
| 10 |
# init models
|
| 11 |
|
|
|
|
| 24 |
|
| 25 |
# DDIM inversion
|
| 26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
def run(ref_path, ref_style, ref_prompt, prompt1, prompt2, prompt3):
|
| 28 |
|
| 29 |
src_style = f"{ref_style}"
|