cmahima commited on
Commit
1035848
1 Parent(s): b1fbb3c

change to PIL

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -295,9 +295,10 @@ with image_blocks as demo:
295
  )
296
 
297
  with gr.Column():
298
- garm_img = gr.Image(label="Garment", elem_id="upload",show_share_button=False)
299
  prompt = gr.Textbox(placeholder="Description of garment ex) Yellow Top", show_label=False, elem_id="prompt")
300
  fetch_button = gr.Button("Fetch Products")
 
 
301
  image_gallery = gr.Gallery(label="Fetched Images", columns=4,allow_preview=False)
302
  price_display = gr.Textbox(label="Price of Selected Image", interactive=False)
303
  url_display = gr.Textbox(label="URL of Selected Image", interactive=False)
 
295
  )
296
 
297
  with gr.Column():
 
298
  prompt = gr.Textbox(placeholder="Description of garment ex) Yellow Top", show_label=False, elem_id="prompt")
299
  fetch_button = gr.Button("Fetch Products")
300
+ garm_img = gr.Image(abel="Garment", sources='upload', type="pil")
301
+
302
  image_gallery = gr.Gallery(label="Fetched Images", columns=4,allow_preview=False)
303
  price_display = gr.Textbox(label="Price of Selected Image", interactive=False)
304
  url_display = gr.Textbox(label="URL of Selected Image", interactive=False)