Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,8 +33,8 @@ pipe.load_lora_weights(custom_model, use_auth_token=True)
|
|
| 33 |
pipe.enable_model_cpu_offload()
|
| 34 |
|
| 35 |
def infer(image_in, prompt):
|
| 36 |
-
prompt =
|
| 37 |
-
negative_prompt =
|
| 38 |
|
| 39 |
image = load_image("https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd_controlnet/hf-logo.png")
|
| 40 |
|
|
@@ -50,7 +50,9 @@ def infer(image_in, prompt):
|
|
| 50 |
prompt, negative_prompt=negative_prompt, image=image, controlnet_conditioning_scale=controlnet_conditioning_scale,
|
| 51 |
).images
|
| 52 |
|
| 53 |
-
images[0].save(f"hug_lab.png")
|
|
|
|
|
|
|
| 54 |
|
| 55 |
with gr.Blocks() as demo:
|
| 56 |
with gr.Column():
|
|
|
|
| 33 |
pipe.enable_model_cpu_offload()
|
| 34 |
|
| 35 |
def infer(image_in, prompt):
|
| 36 |
+
prompt = prompt
|
| 37 |
+
negative_prompt = ""
|
| 38 |
|
| 39 |
image = load_image("https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/sd_controlnet/hf-logo.png")
|
| 40 |
|
|
|
|
| 50 |
prompt, negative_prompt=negative_prompt, image=image, controlnet_conditioning_scale=controlnet_conditioning_scale,
|
| 51 |
).images
|
| 52 |
|
| 53 |
+
#images[0].save(f"hug_lab.png")
|
| 54 |
+
|
| 55 |
+
return images[0]
|
| 56 |
|
| 57 |
with gr.Blocks() as demo:
|
| 58 |
with gr.Column():
|