LayBraid commited on
Commit
6623aa6
·
1 Parent(s): 4bd9371

:construction: update app

Browse files
Files changed (1) hide show
  1. text_to_image.py +4 -5
text_to_image.py CHANGED
@@ -52,10 +52,10 @@ def get_image(text, number):
52
  col1.markdown("{:d}.".format(rank + 1))
53
  col2.image(Image.open(os.path.join("./images", result_filename)),
54
  caption=caption)
55
- caption_text = []
56
- for caption in image2caption[result_filename]:
57
- caption_text.append("* {:s}".format(caption))
58
- col3.markdown("".join(caption_text))
59
  st.markdown("---")
60
  suggest_idx = -1
61
 
@@ -69,4 +69,3 @@ def app():
69
 
70
  if st.button("Search"):
71
  get_image(text, number)
72
-
 
52
  col1.markdown("{:d}.".format(rank + 1))
53
  col2.image(Image.open(os.path.join("./images", result_filename)),
54
  caption=caption)
55
+ # caption_text = []
56
+ # for caption in image2caption[result_filename]:
57
+ # caption_text.append("* {:s}".format(caption))
58
+ # col3.markdown("".join(caption_text))
59
  st.markdown("---")
60
  suggest_idx = -1
61
 
 
69
 
70
  if st.button("Search"):
71
  get_image(text, number)