sohojoe commited on
Commit
22b99cb
1 Parent(s): 7e9c7e5

try having the gallery outside of the row

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -429,9 +429,12 @@ A tool for exploring CLIP embedding space.
429
  n_samples = gr.Slider(1, 16, value=4, step=1, label="Number images")
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)])
 
429
  n_samples = gr.Slider(1, 16, value=4, step=1, label="Number images")
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
+ output = gr.Gallery(label="Closest images in Laion 5b using kNN", show_label=True)\
436
+ .style(grid=[4,4], height="auto")
437
+
438
 
439
  embedding_base64s_state = gr.State(value=[None for i in range(max_tabs)])
440
  embedding_power_state = gr.State(value=[1. for i in range(max_tabs)])