tombetthauser commited on
Commit
ebc5fd4
β€’
1 Parent(s): 453901b

Changed default to portrait

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -249,9 +249,12 @@ def simple_image_prompt(prompt, dropdown, size_dropdown):
249
  elif size_dropdown == 'portrait':
250
  height = 1024
251
  width = 624
252
- else:
253
  height = 768
254
  width = 768
 
 
 
255
 
256
  steps = 30
257
 
@@ -282,8 +285,8 @@ with gr.Blocks(css=".gradio-container {max-width: 650px}") as new_welcome:
282
  ''')
283
 
284
  with gr.Row():
285
- dropdown = gr.Dropdown([dropdown for dropdown in list(DROPDOWNS) if 'ahx-model' in dropdown], default="ahx-model-12", label="choose style...")
286
- size_dropdown = gr.Dropdown(['square', 'portrait', 'landscape'], default="portrait", label="choose size...")
287
  # dropdown = gr.Dropdown(['1 image', '2 images', '3 images', '4 images'], label="output image count...")
288
  prompt = gr.Textbox(label="image prompt...", elem_id="input-text")
289
 
 
249
  elif size_dropdown == 'portrait':
250
  height = 1024
251
  width = 624
252
+ elif size_dropdown == 'square':
253
  height = 768
254
  width = 768
255
+ else:
256
+ height = 1024
257
+ width = 624
258
 
259
  steps = 30
260
 
 
285
  ''')
286
 
287
  with gr.Row():
288
+ dropdown = gr.Dropdown([dropdown for dropdown in list(DROPDOWNS) if 'ahx-model' in dropdown], label="choose style...")
289
+ size_dropdown = gr.Dropdown(['square', 'portrait', 'landscape'], label="choose size...")
290
  # dropdown = gr.Dropdown(['1 image', '2 images', '3 images', '4 images'], label="output image count...")
291
  prompt = gr.Textbox(label="image prompt...", elem_id="input-text")
292