fffiloni commited on
Commit
83f75b0
1 Parent(s): 87d91a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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 = "aerial view, a futuristic research complex in a bright foggy jungle, hard lighting"
37
- negative_prompt = 'low quality, bad quality, sketches'
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():