Spaces:
Running
on
Zero
Running
on
Zero
gaparmar
commited on
Commit
·
cb5f8bb
1
Parent(s):
a611348
cached examples
Browse files
app.py
CHANGED
|
@@ -286,6 +286,7 @@ with gr.Blocks(css=custom_css, js=js_func, theme=gr.themes.Soft(), elem_id="main
|
|
| 286 |
<strong>Tips:</strong>
|
| 287 |
<ul style="margin: 5px 0; padding-left: 20px;">
|
| 288 |
<li>Higher lambda → more diverse outputs (no runtime cost)</li>
|
|
|
|
| 289 |
<li>More starting candidates → better quality and diversity (slower runtime)</li>
|
| 290 |
</ul>
|
| 291 |
</div>
|
|
@@ -300,15 +301,22 @@ with gr.Blocks(css=custom_css, js=js_func, theme=gr.themes.Soft(), elem_id="main
|
|
| 300 |
|
| 301 |
gr.Examples(
|
| 302 |
examples=[
|
| 303 |
-
["
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
["A
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 307 |
],
|
| 308 |
inputs=[prompt, starting_candidates, output_group_size, pruning_ratio, lambda_score, seed, unary_term, binary_term],
|
| 309 |
outputs=[output_gallery_group],
|
| 310 |
fn=generate_images,
|
| 311 |
-
cache_examples=
|
| 312 |
label="Examples"
|
| 313 |
)
|
| 314 |
|
|
|
|
| 286 |
<strong>Tips:</strong>
|
| 287 |
<ul style="margin: 5px 0; padding-left: 20px;">
|
| 288 |
<li>Higher lambda → more diverse outputs (no runtime cost)</li>
|
| 289 |
+
<li>Lower lambda → improved quality and text-adherence (no runtime cost)</li>
|
| 290 |
<li>More starting candidates → better quality and diversity (slower runtime)</li>
|
| 291 |
</ul>
|
| 292 |
</div>
|
|
|
|
| 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.",
|
| 305 |
+
64, 4, 0.9, 1.0, 42, "clip_text_img", "diversity_dino"],
|
| 306 |
+
|
| 307 |
+
["A man wearing a shiny chrome robotic helmet like daft punk, in a black suit and white shirt with a skinny black tie, on a white background",
|
| 308 |
+
64, 4, 0.9, 1.0, 42, "clip_text_img", "diversity_dino"],
|
| 309 |
+
|
| 310 |
+
["Technical sketch of a shoe. It shows lines of the design process so the drawing has construction lines, perspective guidelines, and some annotations. The style is a hand-drawn technical drawing with visible pencil strokes and cross-sections. The sketch must highlight the product's proportions, main components, and the process from basic shapes to a refined concept.", 64, 4, 0.9, 1.0, 42, "clip_text_img", "diversity_dino"],
|
| 311 |
+
["A mountain landscape", 64, 4, 0.9, 1.0, 123, "clip_text_img", "diversity_dino"],
|
| 312 |
+
["A cat sleeping", 64, 4, 0.9, 1.0, 456, "clip_text_img", "diversity_dino"],
|
| 313 |
+
["A sunset at the beach", 64, 4, 0.9, 1.0, 789, "clip_text_img", "diversity_dino"],
|
| 314 |
+
["A photo of a dog", 64, 4, 0.9, 1.0, 42, "clip_text_img", "diversity_dino"],
|
| 315 |
],
|
| 316 |
inputs=[prompt, starting_candidates, output_group_size, pruning_ratio, lambda_score, seed, unary_term, binary_term],
|
| 317 |
outputs=[output_gallery_group],
|
| 318 |
fn=generate_images,
|
| 319 |
+
cache_examples=True,
|
| 320 |
label="Examples"
|
| 321 |
)
|
| 322 |
|