Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import torch
|
|
2 |
import spaces
|
3 |
from diffusers import StableDiffusionPipeline, DDIMScheduler, AutoencoderKL
|
4 |
from transformers import AutoFeatureExtractor
|
5 |
-
|
6 |
|
7 |
from ip_adapter.ip_adapter_instruct import IPAdapterInstruct
|
8 |
from huggingface_hub import hf_hub_download
|
@@ -56,7 +56,7 @@ def generate_image(images, prompt, negative_prompt,instruct_query, scale, nfaa_n
|
|
56 |
# Calculate new width and height
|
57 |
|
58 |
|
59 |
-
image =
|
60 |
|
61 |
yield image
|
62 |
|
|
|
2 |
import spaces
|
3 |
from diffusers import StableDiffusionPipeline, DDIMScheduler, AutoencoderKL
|
4 |
from transformers import AutoFeatureExtractor
|
5 |
+
import process_single_image_both_ways
|
6 |
|
7 |
from ip_adapter.ip_adapter_instruct import IPAdapterInstruct
|
8 |
from huggingface_hub import hf_hub_download
|
|
|
56 |
# Calculate new width and height
|
57 |
|
58 |
|
59 |
+
image = process_single_image_both_ways(image_path="",prompt=prompt,num_inference_steps=20,image=image)
|
60 |
|
61 |
yield image
|
62 |
|