fffiloni commited on
Commit
71e48de
1 Parent(s): 83f75b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -36,7 +36,7 @@ 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
 
41
  controlnet_conditioning_scale = 0.5 # recommended for good generalization
42
 
@@ -50,9 +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
- return images[0]
56
 
57
  with gr.Blocks() as demo:
58
  with gr.Column():
 
36
  prompt = prompt
37
  negative_prompt = ""
38
 
39
+ image = load_image(image_in)
40
 
41
  controlnet_conditioning_scale = 0.5 # recommended for good generalization
42
 
 
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 f"hug_lab.png"
56
 
57
  with gr.Blocks() as demo:
58
  with gr.Column():