Spaces:
Runtime error
Runtime error
Update pages/book.py
Browse files- pages/book.py +2 -0
pages/book.py
CHANGED
@@ -72,6 +72,8 @@ if generate_button:
|
|
72 |
response = requests.get(image_url)
|
73 |
image = Image.open(BytesIO(response.content))
|
74 |
with col1:
|
|
|
75 |
st.image(image)
|
76 |
st.write(f'совпадение с запросом: {cosine_similarities[i]:.2f}')
|
|
|
77 |
st.write("---")
|
|
|
72 |
response = requests.get(image_url)
|
73 |
image = Image.open(BytesIO(response.content))
|
74 |
with col1:
|
75 |
+
st.write("<div style='text-align: center; font-size: 5px;'></div>", unsafe_allow_html=True)
|
76 |
st.image(image)
|
77 |
st.write(f'совпадение с запросом: {cosine_similarities[i]:.2f}')
|
78 |
+
st.markdown(books['genre'][i])
|
79 |
st.write("---")
|