Update app.py
Browse files
app.py
CHANGED
@@ -62,15 +62,16 @@ def show_dashboard():
|
|
62 |
# Display recommended products based on the user question
|
63 |
st.write("**Recommended Products:**")
|
64 |
for result in recommended_products:
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
|
|
74 |
|
75 |
# Main Streamlit app
|
76 |
def main():
|
@@ -87,4 +88,4 @@ def main():
|
|
87 |
|
88 |
# Run the main app
|
89 |
if __name__ == "__main__":
|
90 |
-
main()
|
|
|
62 |
# Display recommended products based on the user question
|
63 |
st.write("**Recommended Products:**")
|
64 |
for result in recommended_products:
|
65 |
+
with st.container():
|
66 |
+
pid = result['corpus_id']
|
67 |
+
product_info = chatbot.product_data[pid]
|
68 |
+
st.write(f"**Product Name:** {product_info['productDisplayName']}")
|
69 |
+
st.write(f"**Category:** {product_info['masterCategory']}")
|
70 |
+
st.write(f"**Article Type:** {product_info['articleType']}")
|
71 |
+
st.write(f"**Usage:** {product_info['usage']}")
|
72 |
+
st.write(f"**Season:** {product_info['season']}")
|
73 |
+
st.write(f"**Gender:** {product_info['gender']}")
|
74 |
+
st.image(chatbot.images[pid], width=150)
|
75 |
|
76 |
# Main Streamlit app
|
77 |
def main():
|
|
|
88 |
|
89 |
# Run the main app
|
90 |
if __name__ == "__main__":
|
91 |
+
main()
|