Spaces:
Running
on
Zero
Running
on
Zero
clinteroni
commited on
Commit
·
4d128e4
1
Parent(s):
98e453d
Add a left-bound example
Browse files
app.py
CHANGED
@@ -277,6 +277,8 @@ def outpaint(pil_image, direction='right', times_to_expand=4, guidance_scale=4.0
|
|
277 |
color_converted = cv2.cvtColor(final_image, cv2.COLOR_BGR2RGB)
|
278 |
return color_converted
|
279 |
|
|
|
|
|
280 |
gradio_app = gr.Interface(
|
281 |
outpaint,
|
282 |
inputs=[
|
@@ -293,7 +295,8 @@ gradio_app = gr.Interface(
|
|
293 |
],
|
294 |
outputs=[gr.Image(label="Processed Image")],
|
295 |
examples=[
|
296 |
-
[
|
|
|
297 |
],
|
298 |
title="Outpainting with differential diffusion demo",
|
299 |
description=DESCRIPTION,
|
|
|
277 |
color_converted = cv2.cvtColor(final_image, cv2.COLOR_BGR2RGB)
|
278 |
return color_converted
|
279 |
|
280 |
+
example_image=load_image('examples/Coucang.jpg')
|
281 |
+
|
282 |
gradio_app = gr.Interface(
|
283 |
outpaint,
|
284 |
inputs=[
|
|
|
295 |
],
|
296 |
outputs=[gr.Image(label="Processed Image")],
|
297 |
examples=[
|
298 |
+
[example_image, 'right', 4, 5, 500],
|
299 |
+
[example_image, 'left', 4, 6, 500],
|
300 |
],
|
301 |
title="Outpainting with differential diffusion demo",
|
302 |
description=DESCRIPTION,
|