mokady commited on
Commit
00bdeb5
·
verified ·
1 Parent(s): c345f64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -9,7 +9,7 @@ import time
9
  resolutions = ["1024 1024","1280 768","1344 768","768 1344","768 1280"]
10
 
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")
@@ -58,12 +58,11 @@ with gr.Blocks(css=css) as demo:
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():
65
  with gr.Column():
66
- prompt_in = gr.Textbox(label="Prompt", value="A smiling man with wavy brown hair and a trimmed beard")
67
  resolution = gr.Dropdown(value=resolutions[0], show_label=True, label="Resolution", choices=resolutions)
68
  seed = gr.Textbox(label="Seed", value=-1)
69
  negative_prompt = gr.Textbox(label="Negative Prompt", value=default_negative_prompt)
 
9
  resolutions = ["1024 1024","1280 768","1344 768","768 1344","768 1280"]
10
 
11
  # Ng
12
+ default_negative_prompt= "Logo,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")
 
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
+ is our new text-to-image model that achieves high-quality generation while being trained exclusively on fully licensed data. We offer both API access and direct access to the model weights, making integration seamless for developers. </p>
 
62
  ''')
63
  with gr.Group():
64
  with gr.Column():
65
+ prompt_in = gr.Textbox(label="Prompt", value="photo of mystical dragon eating sushi, text bubble says "Sushi Time".")
66
  resolution = gr.Dropdown(value=resolutions[0], show_label=True, label="Resolution", choices=resolutions)
67
  seed = gr.Textbox(label="Seed", value=-1)
68
  negative_prompt = gr.Textbox(label="Negative Prompt", value=default_negative_prompt)