update api
Browse files
app.py
CHANGED
@@ -145,7 +145,7 @@ outpaint_tab = gr.Interface(
|
|
145 |
fn=main,
|
146 |
inputs=[
|
147 |
gr.Number(2, visible=False),
|
148 |
-
"image",
|
149 |
gr.Number(label="padding top"),
|
150 |
gr.Number(label="padding bottom"),
|
151 |
gr.Number(label="padding left"),
|
@@ -156,6 +156,8 @@ outpaint_tab = gr.Interface(
|
|
156 |
],
|
157 |
outputs=["image"],
|
158 |
api_name="outpainting",
|
|
|
|
|
159 |
)
|
160 |
|
161 |
|
@@ -163,8 +165,8 @@ inpaint_tab = gr.Interface(
|
|
163 |
fn=main,
|
164 |
inputs=[
|
165 |
gr.Number(3, visible=False),
|
166 |
-
gr.Image(label="image"),
|
167 |
-
gr.Image(label="mask"),
|
168 |
gr.Text(label="prompt"),
|
169 |
gr.Number(value=50, label="num_inference_steps"),
|
170 |
gr.Number(value=28, label="guidance_scale"),
|
@@ -172,6 +174,7 @@ inpaint_tab = gr.Interface(
|
|
172 |
outputs=["image"],
|
173 |
api_name="inpaint",
|
174 |
examples=[[3, "./assets/rocket.png", "./assets/Inpainting mask.png"]],
|
|
|
175 |
)
|
176 |
|
177 |
demo = gr.TabbedInterface(
|
|
|
145 |
fn=main,
|
146 |
inputs=[
|
147 |
gr.Number(2, visible=False),
|
148 |
+
gr.Image(label="image", type="pil"),
|
149 |
gr.Number(label="padding top"),
|
150 |
gr.Number(label="padding bottom"),
|
151 |
gr.Number(label="padding left"),
|
|
|
156 |
],
|
157 |
outputs=["image"],
|
158 |
api_name="outpainting",
|
159 |
+
examples=[[2, "./assets/rocket.png", 100, 0, 0, 0, "", 50, 28]],
|
160 |
+
cache_examples=False,
|
161 |
)
|
162 |
|
163 |
|
|
|
165 |
fn=main,
|
166 |
inputs=[
|
167 |
gr.Number(3, visible=False),
|
168 |
+
gr.Image(label="image", type="pil"),
|
169 |
+
gr.Image(label="mask", type="pil"),
|
170 |
gr.Text(label="prompt"),
|
171 |
gr.Number(value=50, label="num_inference_steps"),
|
172 |
gr.Number(value=28, label="guidance_scale"),
|
|
|
174 |
outputs=["image"],
|
175 |
api_name="inpaint",
|
176 |
examples=[[3, "./assets/rocket.png", "./assets/Inpainting mask.png"]],
|
177 |
+
cache_examples=False,
|
178 |
)
|
179 |
|
180 |
demo = gr.TabbedInterface(
|