import pickle import streamlit as st from html_information import html def read_pickle_files(pickle_file): with open(pickle_file, 'rb') as f: return pickle.load(f) def streamlit_carousel(header_name: str, rec_item_url: list, rec_item_name: list) -> None: st.header(header_name) if header_name == "Up-Sell Recommendations" or header_name == "Cross-Sell Recommendations": st.write("Based on Products added to the Cart") mid_section = "" for index, value in enumerate(rec_item_url): mid_section += """
""" + str(rec_item_name[index]) + """