Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -59,19 +59,4 @@ 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])
|
63 |
-
|
64 |
-
with col1:
|
65 |
-
options = st.multiselect(
|
66 |
-
'Which image you want download?',
|
67 |
-
[i in range(top_k)])
|
68 |
-
|
69 |
-
img_for_download = [list_images[int(i)-1] for i in options]
|
70 |
-
st.write('You selected:', img_for_download)
|
71 |
-
|
72 |
-
# btn = st.download_button(
|
73 |
-
# label="Download all images by ResNet50",
|
74 |
-
# data= [Image.open(i) for i in list_images],
|
75 |
-
# file_name=list_images,
|
76 |
-
# mime="image/png"
|
77 |
-
# )
|
|
|
59 |
st.write(img_desc[ind])
|
60 |
with col2:
|
61 |
st.image(pic[1])
|
62 |
+
st.write(img_descs_vit[ind])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|