Spaces:
Runtime error
Runtime error
Commit
·
bc37e88
1
Parent(s):
1da36c0
Update app.py
Browse filesFixed pipeline args
app.py
CHANGED
@@ -61,7 +61,7 @@ def img_to_img(prompt, neg_prompt, img, strength, guidance, steps, width, height
|
|
61 |
result = pipe_i2i(
|
62 |
prompt,
|
63 |
negative_prompt = neg_prompt,
|
64 |
-
|
65 |
num_inference_steps = int(steps),
|
66 |
strength = strength,
|
67 |
guidance_scale = guidance,
|
@@ -80,7 +80,7 @@ with gr.Blocks(css=css) as demo:
|
|
80 |
</div>
|
81 |
<p>
|
82 |
Demo for <a href="https://huggingface.co/22h/vintedois-diffusion-v0-2">22h Diffusion v0-2</a> Stable Diffusion model.<br>
|
83 |
-
{"Add the following tokens to your prompts for the model to work properly: <b>
|
84 |
</p>
|
85 |
Running on {"<b>GPU 🔥</b>" if torch.cuda.is_available() else f"<b>CPU 🥶</b>. For faster inference it is recommended to <b>upgrade to GPU in <a href='https://huggingface.co/spaces/22h/vintedois-diffusion-v0-2'>Settings</a></b>"}<br><br>
|
86 |
<a style="display:inline-block" href="https://huggingface.co/spaces/22h/vintedois-diffusion-v0-2?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
|
|
|
61 |
result = pipe_i2i(
|
62 |
prompt,
|
63 |
negative_prompt = neg_prompt,
|
64 |
+
image = img,
|
65 |
num_inference_steps = int(steps),
|
66 |
strength = strength,
|
67 |
guidance_scale = guidance,
|
|
|
80 |
</div>
|
81 |
<p>
|
82 |
Demo for <a href="https://huggingface.co/22h/vintedois-diffusion-v0-2">22h Diffusion v0-2</a> Stable Diffusion model.<br>
|
83 |
+
{"Add the following tokens to your prompts for the model to work properly: <b>estilovintedois</b>" if prefix else ""}
|
84 |
</p>
|
85 |
Running on {"<b>GPU 🔥</b>" if torch.cuda.is_available() else f"<b>CPU 🥶</b>. For faster inference it is recommended to <b>upgrade to GPU in <a href='https://huggingface.co/spaces/22h/vintedois-diffusion-v0-2'>Settings</a></b>"}<br><br>
|
86 |
<a style="display:inline-block" href="https://huggingface.co/spaces/22h/vintedois-diffusion-v0-2?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
|