paulokewunmi commited on
Commit
246152c
1 Parent(s): 0eeef10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -32,6 +32,7 @@ def get_search_results(query):
32
  banner_img = Image.open(utils.PACKAGE_DIR.parent / "jumia_lens.png")
33
  st.image(banner_img)
34
 
 
35
 
36
  input_options = st.radio("Select Input Option", ("image upload", "use example images"))
37
 
@@ -42,7 +43,7 @@ if input_options == "image upload":
42
 
43
 
44
  else:
45
- with st.expander(label="Chose sample image", expanded=False):
46
  img = image_select(
47
  label="Use example image",
48
  images=[
@@ -67,10 +68,10 @@ if img:
67
  image = ImageOps.exif_transpose(image)
68
 
69
  with st.columns(3)[1]:
70
- st.markdown("### Query Image.")
71
  st.image(image)
72
  st.markdown(" ")
73
- st.markdown("### Seach results.")
74
  st.markdown(" ")
75
  n = 3
76
  product_images, product_names, product_urls = get_search_results(image)
 
32
  banner_img = Image.open(utils.PACKAGE_DIR.parent / "jumia_lens.png")
33
  st.image(banner_img)
34
 
35
+ st.markdown("#### Currently limited to the following product categories; wrist watches, backpacks, usb drives/hubs, mouse, ergonomic/office chairs, earpiece/headsets")
36
 
37
  input_options = st.radio("Select Input Option", ("image upload", "use example images"))
38
 
 
43
 
44
 
45
  else:
46
+ with st.expander(label="Choose sample image", expanded=False):
47
  img = image_select(
48
  label="Use example image",
49
  images=[
 
68
  image = ImageOps.exif_transpose(image)
69
 
70
  with st.columns(3)[1]:
71
+ st.markdown("### Query Image.")
72
  st.image(image)
73
  st.markdown(" ")
74
+ st.markdown("### Search results.")
75
  st.markdown(" ")
76
  n = 3
77
  product_images, product_names, product_urls = get_search_results(image)