Gabiburt commited on
Commit
b7c06f0
1 Parent(s): 4f01b79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -80,7 +80,7 @@ def get_size(init_image):
80
  device = "cuda" if torch.cuda.is_available() else "cpu"
81
 
82
  # Load, init model
83
- controlnet = ControlNetModel().from_pretrained("briaai/BRIA-2.3-ControlNet-GenFill", torch_dtype=torch.float16)
84
  vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
85
  pipe = StableDiffusionXLControlNetPipeline.from_pretrained("briaai/BRIA-2.3", controlnet=controlnet.to(dtype=torch.float16), torch_dtype=torch.float16, vae=vae) #force_zeros_for_empty_prompt=False, # vae=vae)
86
 
@@ -207,7 +207,7 @@ with image_blocks as demo:
207
  gr.HTML('''
208
  <p style="margin-bottom: 10px; font-size: 94%">
209
  This is a demo for
210
- <a href="https://huggingface.co/briaai/BRIA-2.3-ControlNet-GenFill" target="_blank">BRIA 2.3 ControlNet GenFill</a>.
211
  BRIA GenFill focuses on the inpainting tasks Modify, Add, Replace and trained on licensed data, and provides full legal liability coverage for copyright and privacy infringement.
212
  </p>
213
  ''')
 
80
  device = "cuda" if torch.cuda.is_available() else "cpu"
81
 
82
  # Load, init model
83
+ controlnet = ControlNetModel().from_pretrained("briaai/BRIA-2.3-ControlNet-GenFill-BETA", torch_dtype=torch.float16)
84
  vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
85
  pipe = StableDiffusionXLControlNetPipeline.from_pretrained("briaai/BRIA-2.3", controlnet=controlnet.to(dtype=torch.float16), torch_dtype=torch.float16, vae=vae) #force_zeros_for_empty_prompt=False, # vae=vae)
86
 
 
207
  gr.HTML('''
208
  <p style="margin-bottom: 10px; font-size: 94%">
209
  This is a demo for
210
+ <a href="https://huggingface.co/briaai/BRIA-2.3-ControlNet-GenFill-BETA" target="_blank">BRIA 2.3 ControlNet GenFill</a>.
211
  BRIA GenFill focuses on the inpainting tasks Modify, Add, Replace and trained on licensed data, and provides full legal liability coverage for copyright and privacy infringement.
212
  </p>
213
  ''')