Eyalgut commited on
Commit
c345f64
·
verified ·
1 Parent(s): 3ba83f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -11,9 +11,7 @@ resolutions = ["1024 1024","1280 768","1344 768","768 1344","768 1280"]
11
  # Ng
12
  default_negative_prompt= "Logo,Watermark,Text,Ugly,Morbid,Extra fingers,Poorly drawn hands,Mutation,Blurry,Extra limbs,Gross proportions,Missing arms,Mutated hands,Long neck,Duplicate,Mutilated,Mutilated hands,Poorly drawn face,Deformed,Bad anatomy,Cloned face,Malformed limbs,Missing legs,Too many fingers"
13
 
14
- # Load pipeline
15
- # trust_remote_code = True - allows loading a transformer which is not present at the transformers library(from transformer/bria_transformer.py)
16
- pipe = BriaPipeline.from_pretrained("briaai/BRIA-3.0-TOUCAN", torch_dtype=torch.bfloat16,trust_remote_code=True)
17
  pipe.to(device="cuda")
18
 
19
  @spaces.GPU(enable_queue=True)
@@ -55,12 +53,12 @@ css = """
55
  """
56
  with gr.Blocks(css=css) as demo:
57
  with gr.Column(elem_id="col-container"):
58
- gr.Markdown("## BRIA 3.0-TOUCAN")
59
  gr.HTML('''
60
  <p style="margin-bottom: 10px; font-size: 94%">
61
  This is a demo for
62
- <a href="https://huggingface.co/briaai/BRIA-3.0-TOUCAN" target="_blank">BRIA 3.0-TOUCAN text-to-image </a>.
63
- BRIA 3.0-TOUCAN improve the generation of humans and illustrations compared to BRIA 2.3 while still trained on licensed data, and so provide full legal liability coverage for copyright and privacy infringement.
64
  </p>
65
  ''')
66
  with gr.Group():
@@ -70,7 +68,7 @@ with gr.Blocks(css=css) as demo:
70
  seed = gr.Textbox(label="Seed", value=-1)
71
  negative_prompt = gr.Textbox(label="Negative Prompt", value=default_negative_prompt)
72
  submit_btn = gr.Button("Generate")
73
- result = gr.Image(label="BRIA-3.0-TOUCAN Result")
74
 
75
  # gr.Examples(
76
  # examples = [
 
11
  # Ng
12
  default_negative_prompt= "Logo,Watermark,Text,Ugly,Morbid,Extra fingers,Poorly drawn hands,Mutation,Blurry,Extra limbs,Gross proportions,Missing arms,Mutated hands,Long neck,Duplicate,Mutilated,Mutilated hands,Poorly drawn face,Deformed,Bad anatomy,Cloned face,Malformed limbs,Missing legs,Too many fingers"
13
 
14
+ pipe = BriaPipeline.from_pretrained("briaai/BRIA-3.1", torch_dtype=torch.bfloat16,trust_remote_code=True)
 
 
15
  pipe.to(device="cuda")
16
 
17
  @spaces.GPU(enable_queue=True)
 
53
  """
54
  with gr.Blocks(css=css) as demo:
55
  with gr.Column(elem_id="col-container"):
56
+ gr.Markdown("## BRIA 3.1")
57
  gr.HTML('''
58
  <p style="margin-bottom: 10px; font-size: 94%">
59
  This is a demo for
60
+ <a href="https://huggingface.co/briaai/BRIA-3.1" target="_blank">BRIA 3.1 text-to-image </a>.
61
+ BRIA 3.1 improve the generation of humans and illustrations compared to BRIA 2.3 while still trained on licensed data, and so provide full legal liability coverage for copyright and privacy infringement.
62
  </p>
63
  ''')
64
  with gr.Group():
 
68
  seed = gr.Textbox(label="Seed", value=-1)
69
  negative_prompt = gr.Textbox(label="Negative Prompt", value=default_negative_prompt)
70
  submit_btn = gr.Button("Generate")
71
+ result = gr.Image(label="BRIA-3.1 Result")
72
 
73
  # gr.Examples(
74
  # examples = [