SkalskiP commited on
Commit
805962c
·
1 Parent(s): bca1af7

cap image size, ensure result dimension is divisible by 32

Browse files
Files changed (1) hide show
  1. app.py +11 -10
app.py CHANGED
@@ -71,7 +71,7 @@ def process(input_image_editor, input_text, progress=gr.Progress(track_tqdm=True
71
  width=width,
72
  height=height,
73
  strength=0.7,
74
- num_inference_steps=2
75
  ).images[0]
76
 
77
 
@@ -86,15 +86,16 @@ with gr.Blocks() as demo:
86
  image_mode='RGB',
87
  layers=False,
88
  brush=gr.Brush(colors=["#FFFFFF"], color_mode="fixed"))
89
- input_text_component = gr.Text(
90
- label="Prompt",
91
- show_label=False,
92
- max_lines=1,
93
- placeholder="Enter your prompt",
94
- container=False,
95
- )
96
- submit_button_component = gr.Button(
97
- value='Submit', variant='primary')
 
98
  with gr.Column():
99
  output_image_component = gr.Image(
100
  type='pil', image_mode='RGB', label='Generated image')
 
71
  width=width,
72
  height=height,
73
  strength=0.7,
74
+ num_inference_steps=24
75
  ).images[0]
76
 
77
 
 
86
  image_mode='RGB',
87
  layers=False,
88
  brush=gr.Brush(colors=["#FFFFFF"], color_mode="fixed"))
89
+ with gr.Row():
90
+ input_text_component = gr.Text(
91
+ label="Prompt",
92
+ show_label=False,
93
+ max_lines=1,
94
+ placeholder="Enter your prompt",
95
+ container=False,
96
+ )
97
+ submit_button_component = gr.Button(
98
+ value='Submit', variant='primary', scale=0)
99
  with gr.Column():
100
  output_image_component = gr.Image(
101
  type='pil', image_mode='RGB', label='Generated image')