Spaces:
Sleeping
Sleeping
pngwn
commited on
Commit
·
28d6e58
1
Parent(s):
aba8522
asd
Browse files
app.py
CHANGED
|
@@ -9,8 +9,9 @@ with block:
|
|
| 9 |
with gr.Group():
|
| 10 |
with gr.Box():
|
| 11 |
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
| 12 |
-
text = gr.
|
| 13 |
-
label="
|
|
|
|
| 14 |
show_label=False,
|
| 15 |
max_lines=1,
|
| 16 |
placeholder="Enter your prompt",
|
|
@@ -20,13 +21,27 @@ with block:
|
|
| 20 |
rounded=(True, False, False, True),
|
| 21 |
container=False,
|
| 22 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
btn = gr.Button("Generate image").style(
|
| 24 |
margin=False,
|
| 25 |
rounded=(False, True, True, False),
|
| 26 |
full_width=False,
|
| 27 |
)
|
| 28 |
|
| 29 |
-
gallery = gr.
|
| 30 |
label="Generated images", show_label=False, elem_id="gallery"
|
| 31 |
).style(grid=[2], height="auto")
|
| 32 |
|
|
|
|
| 9 |
with gr.Group():
|
| 10 |
with gr.Box():
|
| 11 |
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
| 12 |
+
text = gr.Dropdown(
|
| 13 |
+
label="Star Sign",
|
| 14 |
+
choices=["leo", "scorpio", "gemini"],
|
| 15 |
show_label=False,
|
| 16 |
max_lines=1,
|
| 17 |
placeholder="Enter your prompt",
|
|
|
|
| 21 |
rounded=(True, False, False, True),
|
| 22 |
container=False,
|
| 23 |
)
|
| 24 |
+
|
| 25 |
+
text2 = gr.Dropdown(
|
| 26 |
+
choices=["love", "career", "wellness"],
|
| 27 |
+
label="Category",
|
| 28 |
+
show_label=False,
|
| 29 |
+
max_lines=1,
|
| 30 |
+
placeholder="Enter your prompt",
|
| 31 |
+
elem_id="prompt-text-input",
|
| 32 |
+
).style(
|
| 33 |
+
border=(True, True, True, True),
|
| 34 |
+
rounded=(True, False, False, True),
|
| 35 |
+
container=False,
|
| 36 |
+
)
|
| 37 |
+
|
| 38 |
btn = gr.Button("Generate image").style(
|
| 39 |
margin=False,
|
| 40 |
rounded=(False, True, True, False),
|
| 41 |
full_width=False,
|
| 42 |
)
|
| 43 |
|
| 44 |
+
gallery = gr.Image(
|
| 45 |
label="Generated images", show_label=False, elem_id="gallery"
|
| 46 |
).style(grid=[2], height="auto")
|
| 47 |
|