import streamlit as st import streamlit.components.v1 as components st.title("Candy Label Scanner") # Embed the HTML file in the Streamlit app with open("index.html", 'r', encoding='utf-8') as f: html_string = f.read() components.html(html_string, height=800, scrolling=True)