sonoisa commited on
Commit
95e6b77
1 Parent(s): 1124071

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -181,7 +181,7 @@ if search_buttion or prev_query != str(query_input):
181
  for i, (idx, distance) in enumerate(results[0:closest_n]):
182
  md_content = ""
183
  page_url = df.iloc[idx]["page"]
184
- for img in df.iloc[idx]["imgs"]:
185
- md_content += f'<a href="{page_url}" target="_blank" rel="noopener noreferrer"><img src="{img}" width="100"></a>'
186
  md_content += f'\n[%.4f {df.iloc[idx]["title"]}]({page_url})' % (distance / 2)
187
  st.markdown(md_content, unsafe_allow_html=True)
 
181
  for i, (idx, distance) in enumerate(results[0:closest_n]):
182
  md_content = ""
183
  page_url = df.iloc[idx]["page"]
184
+ for img_url in df.iloc[idx]["images"]:
185
+ md_content += f'<a href="{page_url}" target="_blank" rel="noopener noreferrer"><img src="{img_url}" width="100"></a>'
186
  md_content += f'\n[%.4f {df.iloc[idx]["title"]}]({page_url})' % (distance / 2)
187
  st.markdown(md_content, unsafe_allow_html=True)