Spaces:
Running
Running
Update app.py
Browse files
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
|
185 |
-
md_content += f'<a href="{page_url}" target="_blank" rel="noopener noreferrer"><img src="{
|
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)
|