change where we set the style
Browse files
app.py
CHANGED
@@ -430,7 +430,8 @@ A tool for exploring CLIP embedding space.
|
|
430 |
with gr.Column(scale=3, min_width=200):
|
431 |
submit = gr.Button("Search embedding space")
|
432 |
with gr.Row():
|
433 |
-
output = gr.Gallery(label="Closest images in Laion 5b using kNN", show_label=True)
|
|
|
434 |
|
435 |
embedding_base64s_state = gr.State(value=[None for i in range(max_tabs)])
|
436 |
embedding_power_state = gr.State(value=[1. for i in range(max_tabs)])
|
@@ -483,9 +484,6 @@ A tool for exploring CLIP embedding space.
|
|
483 |
|
484 |
# submit.click(main, inputs= [embedding_base64s[0], scale, n_samples, steps, seed], outputs=output)
|
485 |
submit.click(main, inputs= [average_embedding_base64, n_samples], outputs=output)
|
486 |
-
# output.style(grid=[4,4], height="auto", container=True)
|
487 |
-
# output.style(grid=[4,4], container=True)
|
488 |
-
output.style(grid=4, height=336)
|
489 |
|
490 |
with gr.Row():
|
491 |
gr.Markdown(
|
|
|
430 |
with gr.Column(scale=3, min_width=200):
|
431 |
submit = gr.Button("Search embedding space")
|
432 |
with gr.Row():
|
433 |
+
output = gr.Gallery(label="Closest images in Laion 5b using kNN", show_label=True)\
|
434 |
+
.style(grid=[4,4], height="auto")
|
435 |
|
436 |
embedding_base64s_state = gr.State(value=[None for i in range(max_tabs)])
|
437 |
embedding_power_state = gr.State(value=[1. for i in range(max_tabs)])
|
|
|
484 |
|
485 |
# submit.click(main, inputs= [embedding_base64s[0], scale, n_samples, steps, seed], outputs=output)
|
486 |
submit.click(main, inputs= [average_embedding_base64, n_samples], outputs=output)
|
|
|
|
|
|
|
487 |
|
488 |
with gr.Row():
|
489 |
gr.Markdown(
|