prateekbh commited on
Commit
688c0f1
·
verified ·
1 Parent(s): 32a8e2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 image
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,