import streamlit as st import streamlit.components.v1 as components from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("team-lucid/trocr-small-korean") model = AutoModel.from_pretrained("team-lucid/trocr-small-korean") 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)