Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def show_image_metadata_and_related_info(image_index):
|
|
21 |
st.image(selected_image, caption=f"{image_title}", use_column_width=True)
|
22 |
|
23 |
with st.expander("You May Also Like.."):
|
24 |
-
dataset_s = get_recommendations(selected_image,image_title)
|
25 |
|
26 |
col1_row1, col2_row1 = st.columns(2)
|
27 |
with col1_row1:
|
@@ -36,6 +36,20 @@ def show_image_metadata_and_related_info(image_index):
|
|
36 |
with col2_row2:
|
37 |
st.image(image=dataset_s['image'][3], caption=dataset_s['title'][3], width=200)
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
def main():
|
40 |
st.title("Youtube Recommendation Engine")
|
41 |
|
|
|
21 |
st.image(selected_image, caption=f"{image_title}", use_column_width=True)
|
22 |
|
23 |
with st.expander("You May Also Like.."):
|
24 |
+
dataset_s = get_recommendations(selected_image,image_title,8)
|
25 |
|
26 |
col1_row1, col2_row1 = st.columns(2)
|
27 |
with col1_row1:
|
|
|
36 |
with col2_row2:
|
37 |
st.image(image=dataset_s['image'][3], caption=dataset_s['title'][3], width=200)
|
38 |
|
39 |
+
# Third row
|
40 |
+
col1_row3, col2_row3 = st.columns(2)
|
41 |
+
with col1_row3:
|
42 |
+
st.image(image=dataset_s['image'][4], caption=dataset_s['title'][4], width=200)
|
43 |
+
with col2_row3:
|
44 |
+
st.image(image=dataset_s['image'][5], caption=dataset_s['title'][5], width=200)
|
45 |
+
|
46 |
+
# Fourth Row
|
47 |
+
col1_row4, col2_row4 = st.columns(2)
|
48 |
+
with col1_row4:
|
49 |
+
st.image(image=dataset_s['image'][6], caption=dataset_s['title'][6], width=200)
|
50 |
+
with col2_row4:
|
51 |
+
st.image(image=dataset_s['image'][7], caption=dataset_s['title'][7], width=200)
|
52 |
+
|
53 |
def main():
|
54 |
st.title("Youtube Recommendation Engine")
|
55 |
|