Spaces:
Running
on
Zero
Running
on
Zero
cap image size, ensure result dimension is divisible by 32
Browse files
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=
|
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 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
|
|
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')
|