alfredplpl commited on
Commit
416fcc5
1 Parent(s): 9075da4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -46,14 +46,14 @@ def inference(prompt, guidance, steps, image_size="Square", seed=0, img=None, st
46
  prompt,neg_prompt=auto_prompt_correction(prompt,neg_prompt,disable_auto_prompt_correction)
47
 
48
  if(image_size=="Portrait"):
49
- height=1024
50
  width=768
51
  elif(image_size=="Landscape"):
52
  height=768
53
- width=1024
54
  else:
55
- height=768
56
- width=768
57
 
58
  print(prompt,neg_prompt)
59
 
@@ -167,7 +167,7 @@ with gr.Blocks(css=css) as demo:
167
  prompt = gr.Textbox(label="Prompt", show_label=False, max_lines=2,placeholder="[your prompt]").style(container=False)
168
  generate = gr.Button(value="Generate")
169
 
170
- image_out = gr.Image(height=768,width=768)
171
  error_output = gr.Markdown()
172
 
173
  with gr.Column(scale=45):
 
46
  prompt,neg_prompt=auto_prompt_correction(prompt,neg_prompt,disable_auto_prompt_correction)
47
 
48
  if(image_size=="Portrait"):
49
+ height=1344
50
  width=768
51
  elif(image_size=="Landscape"):
52
  height=768
53
+ width=1344
54
  else:
55
+ height=1024
56
+ width=1024
57
 
58
  print(prompt,neg_prompt)
59
 
 
167
  prompt = gr.Textbox(label="Prompt", show_label=False, max_lines=2,placeholder="[your prompt]").style(container=False)
168
  generate = gr.Button(value="Generate")
169
 
170
+ image_out = gr.Image(height=1024,width=1024)
171
  error_output = gr.Markdown()
172
 
173
  with gr.Column(scale=45):