Spaces:
Paused
Paused
Commit
·
9afb445
1
Parent(s):
9afe427
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,7 +78,7 @@ def inpaint_image(prompt, init_image, mask_image, num_inference_steps, guidance_
|
|
| 78 |
|
| 79 |
return image
|
| 80 |
|
| 81 |
-
def generate_image_with_adapter(
|
| 82 |
generator = torch.manual_seed(0)
|
| 83 |
# Generate the image
|
| 84 |
image = pipe(prompt=prompt, num_inference_steps=num_inference_steps, guidance_scale=guidance_scale, generator=generator).images[0]
|
|
@@ -97,7 +97,7 @@ with gr.Blocks(gr.themes.Soft()) as demo:
|
|
| 97 |
|
| 98 |
adapter_generate_button.click(
|
| 99 |
generate_image_with_adapter,
|
| 100 |
-
inputs=[
|
| 101 |
outputs=image_output
|
| 102 |
)
|
| 103 |
|
|
|
|
| 78 |
|
| 79 |
return image
|
| 80 |
|
| 81 |
+
def generate_image_with_adapter(prompt, num_inference_steps, guidance_scale):
|
| 82 |
generator = torch.manual_seed(0)
|
| 83 |
# Generate the image
|
| 84 |
image = pipe(prompt=prompt, num_inference_steps=num_inference_steps, guidance_scale=guidance_scale, generator=generator).images[0]
|
|
|
|
| 97 |
|
| 98 |
adapter_generate_button.click(
|
| 99 |
generate_image_with_adapter,
|
| 100 |
+
inputs=[adapter_prompt_input, adapter_steps_input, adapter_guidance_input],
|
| 101 |
outputs=image_output
|
| 102 |
)
|
| 103 |
|