Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -165,7 +165,7 @@ with gr.Blocks(css=css) as demo:
|
|
165 |
image = select_image(uploaded_image, image_url, use_generated=False)
|
166 |
prompt = "ghibli style, a fantasy landscape with castles"
|
167 |
generator = torch.Generator(device=device).manual_seed(1024)
|
168 |
-
image =
|
169 |
return image
|
170 |
|
171 |
use_generated_image.click(fn=lambda: image2image(None, None, True), inputs=[], outputs=additional_image_output)
|
|
|
165 |
image = select_image(uploaded_image, image_url, use_generated=False)
|
166 |
prompt = "ghibli style, a fantasy landscape with castles"
|
167 |
generator = torch.Generator(device=device).manual_seed(1024)
|
168 |
+
image = pipeline2Image(prompt=prompt, image=image, strength=0.75, guidance_scale=7.5, generator=generator).images[0]
|
169 |
return image
|
170 |
|
171 |
use_generated_image.click(fn=lambda: image2image(None, None, True), inputs=[], outputs=additional_image_output)
|