shivangibithel commited on
Commit
f352d7e
1 Parent(s): 19ab851

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -59,7 +59,7 @@ def search(query, k=5):
59
  image_id = str(image_list[i])
60
  image_data = zip_file.open("Images/" +image_id)
61
  image = Image.open(image_data)
62
- st.image(image, width=200)
63
 
64
 
65
  st.title("Image Search App")
@@ -67,11 +67,4 @@ st.title("Image Search App")
67
  query = st.text_input("Enter your search query here:")
68
  if st.button("Search"):
69
  if query:
70
- search(query)
71
-
72
- # Display the images
73
- # st.image(image_urls, width=200)
74
-
75
- if __name__ == '__main__':
76
- st.cache(allow_output_mutation=True)
77
- run_app()
 
59
  image_id = str(image_list[i])
60
  image_data = zip_file.open("Images/" +image_id)
61
  image = Image.open(image_data)
62
+ st.image(image, width=600)
63
 
64
 
65
  st.title("Image Search App")
 
67
  query = st.text_input("Enter your search query here:")
68
  if st.button("Search"):
69
  if query:
70
+ search(query)