Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ with torch.no_grad():
|
|
46 |
print(f"Optimizing finished successfully after {time.time()-t} secs")
|
47 |
|
48 |
@spaces.GPU(enable_queue=True)
|
49 |
-
def infer(prompt,
|
50 |
print(f"""
|
51 |
—/n
|
52 |
{prompt}
|
@@ -84,7 +84,7 @@ css = """
|
|
84 |
"""
|
85 |
with gr.Blocks(css=css) as demo:
|
86 |
with gr.Column(elem_id="col-container"):
|
87 |
-
gr.Markdown("## BRIA 2.2 Beta")
|
88 |
gr.HTML('''
|
89 |
<p style="margin-bottom: 10px; font-size: 94%">
|
90 |
This is a demo for
|
@@ -97,7 +97,6 @@ with gr.Blocks(css=css) as demo:
|
|
97 |
prompt_in = gr.Textbox(label="Prompt", value="A smiling man with wavy brown hair and a trimmed beard")
|
98 |
resolution = gr.Dropdown(value=resolutions[0], show_label=True, label="Resolution", choices=resolutions)
|
99 |
seed = gr.Textbox(label="Seed", value=-1)
|
100 |
-
negative_prompt = gr.Textbox(label="Negative Prompt", value=default_negative_prompt)
|
101 |
submit_btn = gr.Button("Generate")
|
102 |
result = gr.Image(label="BRIA-2.2 Result")
|
103 |
|
@@ -122,7 +121,6 @@ with gr.Blocks(css=css) as demo:
|
|
122 |
fn = infer,
|
123 |
inputs = [
|
124 |
prompt_in,
|
125 |
-
negative_prompt,
|
126 |
seed,
|
127 |
resolution
|
128 |
],
|
|
|
46 |
print(f"Optimizing finished successfully after {time.time()-t} secs")
|
47 |
|
48 |
@spaces.GPU(enable_queue=True)
|
49 |
+
def infer(prompt,seed,resolution):
|
50 |
print(f"""
|
51 |
—/n
|
52 |
{prompt}
|
|
|
84 |
"""
|
85 |
with gr.Blocks(css=css) as demo:
|
86 |
with gr.Column(elem_id="col-container"):
|
87 |
+
gr.Markdown("## BRIA 2.2 LCM Beta")
|
88 |
gr.HTML('''
|
89 |
<p style="margin-bottom: 10px; font-size: 94%">
|
90 |
This is a demo for
|
|
|
97 |
prompt_in = gr.Textbox(label="Prompt", value="A smiling man with wavy brown hair and a trimmed beard")
|
98 |
resolution = gr.Dropdown(value=resolutions[0], show_label=True, label="Resolution", choices=resolutions)
|
99 |
seed = gr.Textbox(label="Seed", value=-1)
|
|
|
100 |
submit_btn = gr.Button("Generate")
|
101 |
result = gr.Image(label="BRIA-2.2 Result")
|
102 |
|
|
|
121 |
fn = infer,
|
122 |
inputs = [
|
123 |
prompt_in,
|
|
|
124 |
seed,
|
125 |
resolution
|
126 |
],
|