Prathamesh1420 commited on
Commit
ca3309b
·
verified ·
1 Parent(s): 1b8d4f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -10
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
- pid = result['corpus_id']
66
- product_info = chatbot.product_data[pid]
67
- st.write(f"**Product Name:** {product_info['productDisplayName']}")
68
- st.write(f"**Category:** {product_info['masterCategory']}")
69
- st.write(f"**Article Type:** {product_info['articleType']}")
70
- st.write(f"**Usage:** {product_info['usage']}")
71
- st.write(f"**Season:** {product_info['season']}")
72
- st.write(f"**Gender:** {product_info['gender']}")
73
- st.image(chatbot.images[pid], width=150)
 
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()