Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,11 +65,10 @@ def generate(image, prompt_user, progress=gr.Progress(track_tqdm=True)):
|
|
| 65 |
strength=1
|
| 66 |
).images[0]
|
| 67 |
|
| 68 |
-
yield None, out
|
| 69 |
width, height = out.size
|
| 70 |
half_width = width // 2
|
| 71 |
image_2 = out.crop((half_width, 0, width, height))
|
| 72 |
-
|
| 73 |
|
| 74 |
with gr.Blocks() as demo:
|
| 75 |
gr.Markdown("# Logo in Context")
|
|
@@ -109,6 +108,4 @@ with gr.Blocks() as demo:
|
|
| 109 |
outputs=[output_image, output_side]
|
| 110 |
)
|
| 111 |
|
| 112 |
-
|
| 113 |
-
if name == "main":
|
| 114 |
-
demo.launch()
|
|
|
|
| 65 |
strength=1
|
| 66 |
).images[0]
|
| 67 |
|
|
|
|
| 68 |
width, height = out.size
|
| 69 |
half_width = width // 2
|
| 70 |
image_2 = out.crop((half_width, 0, width, height))
|
| 71 |
+
return image_2, out
|
| 72 |
|
| 73 |
with gr.Blocks() as demo:
|
| 74 |
gr.Markdown("# Logo in Context")
|
|
|
|
| 108 |
outputs=[output_image, output_side]
|
| 109 |
)
|
| 110 |
|
| 111 |
+
demo.launch()
|
|
|
|
|
|