Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ pipeline = AutoPipelineForInpainting.from_pretrained(
|
|
| 17 |
variant="fp16",
|
| 18 |
use_safetensors=True
|
| 19 |
).to(device)
|
| 20 |
-
pipeline.load_ip_adapter("h94/IP-Adapter", subfolder="sdxl_models", weight_name="ip-adapter_sdxl.bin"
|
| 21 |
|
| 22 |
# Function to process images
|
| 23 |
def virtual_try_on(img, clothing, prompt, negative_prompt, ip_scale=1.0, strength=0.99, guidance_scale=7.5, steps=100):
|
|
|
|
| 17 |
variant="fp16",
|
| 18 |
use_safetensors=True
|
| 19 |
).to(device)
|
| 20 |
+
pipeline.load_ip_adapter("h94/IP-Adapter", subfolder="sdxl_models", weight_name="ip-adapter_sdxl.bin")
|
| 21 |
|
| 22 |
# Function to process images
|
| 23 |
def virtual_try_on(img, clothing, prompt, negative_prompt, ip_scale=1.0, strength=0.99, guidance_scale=7.5, steps=100):
|