Eyalgut commited on
Commit
c86752f
·
verified ·
1 Parent(s): a74985e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -31,7 +31,7 @@ pipe.to("cuda")
31
  pipe.force_zeros_for_empty_prompt = False
32
  pipe = EllaXLPipeline(pipe,f'{pipeline_path}/pytorch_model.bin')
33
 
34
- # print("Optimizing BRIA-2.3 - this could take a while")
35
  # t=time.time()
36
  # pipe.unet = torch.compile(
37
  # pipe.unet, mode="reduce-overhead", fullgraph=True # 600 secs compilation
@@ -91,12 +91,12 @@ css = """
91
  """
92
  with gr.Blocks(css=css) as demo:
93
  with gr.Column(elem_id="col-container"):
94
- gr.Markdown("## BRIA 2.3")
95
  gr.HTML('''
96
  <p style="margin-bottom: 10px; font-size: 94%">
97
  This is a demo for
98
- <a href="https://huggingface.co/briaai/BRIA-2.3" target="_blank">BRIA 2.3 text-to-image </a>.
99
- BRIA 2.3 improve the generation of humans and illustrations compared to BRIA 2.2 while still trained on licensed data, and so provide full legal liability coverage for copyright and privacy infringement.
100
  </p>
101
  ''')
102
  with gr.Group():
@@ -106,7 +106,7 @@ with gr.Blocks(css=css) as demo:
106
  seed = gr.Textbox(label="Seed", value=-1)
107
  negative_prompt = gr.Textbox(label="Negative Prompt", value=default_negative_prompt)
108
  submit_btn = gr.Button("Generate")
109
- result = gr.Image(label="BRIA-2.3 Result")
110
 
111
  # gr.Examples(
112
  # examples = [
 
31
  pipe.force_zeros_for_empty_prompt = False
32
  pipe = EllaXLPipeline(pipe,f'{pipeline_path}/pytorch_model.bin')
33
 
34
+ # print("Optimizing BRIA-2.4 - this could take a while")
35
  # t=time.time()
36
  # pipe.unet = torch.compile(
37
  # pipe.unet, mode="reduce-overhead", fullgraph=True # 600 secs compilation
 
91
  """
92
  with gr.Blocks(css=css) as demo:
93
  with gr.Column(elem_id="col-container"):
94
+ gr.Markdown("## BRIA 2.4")
95
  gr.HTML('''
96
  <p style="margin-bottom: 10px; font-size: 94%">
97
  This is a demo for
98
+ <a href="https://huggingface.co/briaai/BRIA-2.4" target="_blank">BRIA 2.4 text-to-image </a>.
99
+ BRIA 2.4 improve the generation of humans and illustrations compared to BRIA 2.2 while still trained on licensed data, and so provide full legal liability coverage for copyright and privacy infringement.
100
  </p>
101
  ''')
102
  with gr.Group():
 
106
  seed = gr.Textbox(label="Seed", value=-1)
107
  negative_prompt = gr.Textbox(label="Negative Prompt", value=default_negative_prompt)
108
  submit_btn = gr.Button("Generate")
109
+ result = gr.Image(label="BRIA-2.4 Result")
110
 
111
  # gr.Examples(
112
  # examples = [