Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def lexica(prompt, limit_size = 128, ratio_size = 256 + 128):
|
|
42 |
|
43 |
with gr.Blocks("custom.css") as demo:
|
44 |
with gr.Row():
|
45 |
-
with gr.
|
46 |
with gr.Row():
|
47 |
#inputs = gr.Textbox(label = 'Enter prompt to search Lexica.art')
|
48 |
inputs = gr.Textbox(label="Prompt", show_label=False, lines=1, max_lines=1,
|
@@ -50,17 +50,16 @@ with gr.Blocks("custom.css") as demo:
|
|
50 |
#gr.Slider(label='Number of images ', minimum = 4, maximum = 20, step = 1, value = 4)]
|
51 |
text_button = gr.Button("Retrieve Images", elem_id="run_button")
|
52 |
i = gr.Image(elem_id="result-image")
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
title = gr.Markdown(
|
57 |
value="### Click on a Image in the gallery to select it, and the grid order will change",
|
58 |
visible=True,
|
59 |
elem_id="selected_model",
|
60 |
)
|
61 |
-
|
62 |
allow_preview=False, label = "retrieve Images")
|
63 |
-
|
64 |
|
65 |
#outputs.select(image_click, outputs, i, _js="(x) => x.splice(0,x.length)")
|
66 |
outputs.select(image_click, outputs, i,)
|
|
|
42 |
|
43 |
with gr.Blocks("custom.css") as demo:
|
44 |
with gr.Row():
|
45 |
+
with gr.Column():
|
46 |
with gr.Row():
|
47 |
#inputs = gr.Textbox(label = 'Enter prompt to search Lexica.art')
|
48 |
inputs = gr.Textbox(label="Prompt", show_label=False, lines=1, max_lines=1,
|
|
|
50 |
#gr.Slider(label='Number of images ', minimum = 4, maximum = 20, step = 1, value = 4)]
|
51 |
text_button = gr.Button("Retrieve Images", elem_id="run_button")
|
52 |
i = gr.Image(elem_id="result-image")
|
53 |
+
|
54 |
+
with gr.Column():
|
55 |
+
title = gr.Markdown(
|
|
|
56 |
value="### Click on a Image in the gallery to select it, and the grid order will change",
|
57 |
visible=True,
|
58 |
elem_id="selected_model",
|
59 |
)
|
60 |
+
outputs = gr.Gallery(lable='Output gallery', elem_id="gallery",).style(grid=3,height=768,
|
61 |
allow_preview=False, label = "retrieve Images")
|
62 |
+
#gr.Dataframe(label='prompts for corresponding images')]
|
63 |
|
64 |
#outputs.select(image_click, outputs, i, _js="(x) => x.splice(0,x.length)")
|
65 |
outputs.select(image_click, outputs, i,)
|