Spaces:
Running
on
Zero
Running
on
Zero
Muhammadreza
commited on
Commit
•
6957b76
1
Parent(s):
a9fdd2e
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def genie (input_image, prompt, negative_prompt, width, height, steps, seed, con
|
|
41 |
|
42 |
#generating a new image
|
43 |
generator = np.random.seed(0) if seed == 0 else torch.manual_seed(seed)
|
44 |
-
int_image = pipe(prompt=prompt, negative_prompt=negative_prompt, width=width, height=height, generator=generator, num_inference_steps=steps, guidance_scale=
|
45 |
return int_image
|
46 |
|
47 |
gr.Interface(fn=genie, inputs=[gr.Textbox(label='Base Image URL'),
|
|
|
41 |
|
42 |
#generating a new image
|
43 |
generator = np.random.seed(0) if seed == 0 else torch.manual_seed(seed)
|
44 |
+
int_image = pipe(prompt=prompt, negative_prompt=negative_prompt, width=width, height=height, generator=generator, num_inference_steps=steps, guidance_scale=5.0, image=image, controlnet_conditioning_scale=conditioning_scale).images[0]
|
45 |
return int_image
|
46 |
|
47 |
gr.Interface(fn=genie, inputs=[gr.Textbox(label='Base Image URL'),
|