dvir-bria commited on
Commit
f0939d1
1 Parent(s): 6c4e5fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -8,7 +8,7 @@ import gradio as gr
8
  from torchvision import transforms
9
 
10
  controlnet = ControlNetModel.from_pretrained(
11
- "briaai/BRIA-2.2-ControlNet-Canny",
12
  torch_dtype=torch.float16
13
  ).to('cuda')
14
 
@@ -78,15 +78,15 @@ def process(input_image, prompt, negative_prompt, num_steps, controlnet_conditio
78
  generator=generator,
79
  ).images
80
 
81
- return [canny_image, images[0]]
82
 
83
  block = gr.Blocks().queue()
84
 
85
  with block:
86
- gr.Markdown("## BRIA 2.2 ControlNet Canny")
87
  gr.HTML('''
88
  <p style="margin-bottom: 10px; font-size: 94%">
89
- This is a demo for ControlNet Canny that using
90
  <a href="https://huggingface.co/briaai/BRIA-2.2" target="_blank">BRIA 2.2 text-to-image model</a> as backbone.
91
  Trained on licensed data, BRIA 2.2 provide full legal liability coverage for copyright and privacy infringement.
92
  </p>
 
8
  from torchvision import transforms
9
 
10
  controlnet = ControlNetModel.from_pretrained(
11
+ "briaai/BRIA-2.2-ControlNet-Depth",
12
  torch_dtype=torch.float16
13
  ).to('cuda')
14
 
 
78
  generator=generator,
79
  ).images
80
 
81
+ return [depth_image, images[0]]
82
 
83
  block = gr.Blocks().queue()
84
 
85
  with block:
86
+ gr.Markdown("## BRIA 2.2 ControlNet Depth")
87
  gr.HTML('''
88
  <p style="margin-bottom: 10px; font-size: 94%">
89
+ This is a demo for ControlNet Depth that using
90
  <a href="https://huggingface.co/briaai/BRIA-2.2" target="_blank">BRIA 2.2 text-to-image model</a> as backbone.
91
  Trained on licensed data, BRIA 2.2 provide full legal liability coverage for copyright and privacy infringement.
92
  </p>