Spaces:
Runtime error
Runtime error
Commit
Β·
9761641
1
Parent(s):
4eca7fa
Cleaned up welcome dropdowns and added defaults
Browse files
app.py
CHANGED
@@ -264,7 +264,9 @@ def simple_image_prompt(prompt, dropdown, size_dropdown):
|
|
264 |
|
265 |
|
266 |
# ~~~ WELCOME TAB ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
267 |
-
|
|
|
|
|
268 |
with gr.Blocks(css=".gradio-container {max-width: 650px}") as new_welcome:
|
269 |
gr.Markdown('''
|
270 |
# π§βπ Astronaut Horse Concept Loader
|
@@ -279,8 +281,8 @@ with gr.Blocks(css=".gradio-container {max-width: 650px}") as new_welcome:
|
|
279 |
''')
|
280 |
|
281 |
with gr.Row():
|
282 |
-
dropdown = gr.Dropdown([dropdown for dropdown in list(DROPDOWNS) if 'ahx-model' in dropdown], label="choose style...")
|
283 |
-
size_dropdown = gr.Dropdown(['square', '
|
284 |
# dropdown = gr.Dropdown(['1 image', '2 images', '3 images', '4 images'], label="output image count...")
|
285 |
prompt = gr.Textbox(label="image prompt...", elem_id="input-text")
|
286 |
|
|
|
264 |
|
265 |
|
266 |
# ~~~ WELCOME TAB ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
267 |
+
|
268 |
+
rand_model_int = 2
|
269 |
+
|
270 |
with gr.Blocks(css=".gradio-container {max-width: 650px}") as new_welcome:
|
271 |
gr.Markdown('''
|
272 |
# π§βπ Astronaut Horse Concept Loader
|
|
|
281 |
''')
|
282 |
|
283 |
with gr.Row():
|
284 |
+
dropdown = gr.Dropdown([dropdown for dropdown in list(DROPDOWNS) if 'ahx-model' in dropdown], default=rand_model_int, label="choose style...")
|
285 |
+
size_dropdown = gr.Dropdown(['square', 'portrait', 'landscape'], default=1, label="choose size...")
|
286 |
# dropdown = gr.Dropdown(['1 image', '2 images', '3 images', '4 images'], label="output image count...")
|
287 |
prompt = gr.Textbox(label="image prompt...", elem_id="input-text")
|
288 |
|