IvaElen commited on
Commit
5238f71
·
1 Parent(s): 13bd968

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -46,7 +46,6 @@ df = pd.read_csv('results.csv',
46
  names = ['image_name', 'comment_number', 'comment'],
47
  header=0)
48
 
49
-
50
  if txt is not None:
51
  if st.button('Find!'):
52
  list_images, img_desc, list_images_vit, img_descs_vit = find_image_disc(txt, df, top_k)
@@ -59,4 +58,12 @@ if txt is not None:
59
  st.write(img_desc[ind])
60
  with col2:
61
  st.image(pic[1])
62
- st.write(img_descs_vit[ind])
 
 
 
 
 
 
 
 
 
46
  names = ['image_name', 'comment_number', 'comment'],
47
  header=0)
48
 
 
49
  if txt is not None:
50
  if st.button('Find!'):
51
  list_images, img_desc, list_images_vit, img_descs_vit = find_image_disc(txt, df, top_k)
 
58
  st.write(img_desc[ind])
59
  with col2:
60
  st.image(pic[1])
61
+ st.write(img_descs_vit[ind])
62
+
63
+ with col1:
64
+ btn = st.download_button(
65
+ label="Download all images by ResNet50",
66
+ data=list_images,
67
+ file_name=list_images,
68
+ mime="image/png"
69
+ )