Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -128,7 +128,7 @@ def process(image):
|
|
128 |
new_im.paste(orig_image, mask=pil_im)
|
129 |
# new_orig_image = orig_image.convert('RGBA')
|
130 |
|
131 |
-
return
|
132 |
|
133 |
|
134 |
title = """<h1 style="text-align: center;">Product description generator</h1>"""
|
@@ -147,7 +147,7 @@ with gr.Blocks(css=css) as demo:
|
|
147 |
chat = gr.Chatbot(show_label=False)
|
148 |
submit = gr.Button(value="Upload", variant="primary")
|
149 |
with gr.Column():
|
150 |
-
output = gr.Image(type="pil")
|
151 |
|
152 |
response_handler = (
|
153 |
response,
|
|
|
128 |
new_im.paste(orig_image, mask=pil_im)
|
129 |
# new_orig_image = orig_image.convert('RGBA')
|
130 |
|
131 |
+
return new_im
|
132 |
|
133 |
|
134 |
title = """<h1 style="text-align: center;">Product description generator</h1>"""
|
|
|
147 |
chat = gr.Chatbot(show_label=False)
|
148 |
submit = gr.Button(value="Upload", variant="primary")
|
149 |
with gr.Column():
|
150 |
+
output = gr.Image(type="pil", interactive=False)
|
151 |
|
152 |
response_handler = (
|
153 |
response,
|