gaparmar
commited on
Commit
·
d9f2bd4
1
Parent(s):
cb5f8bb
updated instructions
Browse files
app.py
CHANGED
|
@@ -285,20 +285,23 @@ with gr.Blocks(css=custom_css, js=js_func, theme=gr.themes.Soft(), elem_id="main
|
|
| 285 |
<div style="margin: 15px 0; padding: 10px; background-color: #f0f0f0; border-radius: 5px; font-size: 14px;">
|
| 286 |
<strong>Tips:</strong>
|
| 287 |
<ul style="margin: 5px 0; padding-left: 20px;">
|
| 288 |
-
<li>
|
| 289 |
-
<li>
|
|
|
|
| 290 |
<li>More starting candidates → better quality and diversity (slower runtime)</li>
|
| 291 |
</ul>
|
| 292 |
</div>
|
| 293 |
"""
|
| 294 |
)
|
| 295 |
|
|
|
|
| 296 |
with gr.Row(scale=1):
|
| 297 |
generate_btn = gr.Button("Generate", variant="primary")
|
| 298 |
|
| 299 |
with gr.Row(scale=1):
|
| 300 |
output_gallery_group = gr.Gallery(label="Group Inference", show_label=True,elem_id="gallery", columns=4, height="auto")
|
| 301 |
|
|
|
|
| 302 |
gr.Examples(
|
| 303 |
examples=[
|
| 304 |
["Head of a robot tiger made from black and white with red details, intricate mechanical parts, full-body shot, black background, hyper-realistic photography.",
|
|
@@ -320,6 +323,7 @@ with gr.Blocks(css=custom_css, js=js_func, theme=gr.themes.Soft(), elem_id="main
|
|
| 320 |
label="Examples"
|
| 321 |
)
|
| 322 |
|
|
|
|
| 323 |
generate_btn.click(
|
| 324 |
fn=generate_images,
|
| 325 |
inputs=[prompt, starting_candidates, output_group_size, pruning_ratio, lambda_score, seed, unary_term, binary_term],
|
|
|
|
| 285 |
<div style="margin: 15px 0; padding: 10px; background-color: #f0f0f0; border-radius: 5px; font-size: 14px;">
|
| 286 |
<strong>Tips:</strong>
|
| 287 |
<ul style="margin: 5px 0; padding-left: 20px;">
|
| 288 |
+
<li>Try out the (cached) examples below first! </li>
|
| 289 |
+
<li>Higher lambda → more diverse outputs (no added runtime cost)</li>
|
| 290 |
+
<li>Lower lambda → improved quality and text-adherence (no added runtime cost)</li>
|
| 291 |
<li>More starting candidates → better quality and diversity (slower runtime)</li>
|
| 292 |
</ul>
|
| 293 |
</div>
|
| 294 |
"""
|
| 295 |
)
|
| 296 |
|
| 297 |
+
|
| 298 |
with gr.Row(scale=1):
|
| 299 |
generate_btn = gr.Button("Generate", variant="primary")
|
| 300 |
|
| 301 |
with gr.Row(scale=1):
|
| 302 |
output_gallery_group = gr.Gallery(label="Group Inference", show_label=True,elem_id="gallery", columns=4, height="auto")
|
| 303 |
|
| 304 |
+
|
| 305 |
gr.Examples(
|
| 306 |
examples=[
|
| 307 |
["Head of a robot tiger made from black and white with red details, intricate mechanical parts, full-body shot, black background, hyper-realistic photography.",
|
|
|
|
| 323 |
label="Examples"
|
| 324 |
)
|
| 325 |
|
| 326 |
+
|
| 327 |
generate_btn.click(
|
| 328 |
fn=generate_images,
|
| 329 |
inputs=[prompt, starting_candidates, output_group_size, pruning_ratio, lambda_score, seed, unary_term, binary_term],
|