SomelliraAppTry / app.py
ilar06's picture
Update app.py
121d4d0 verified
raw
history blame
No virus
518 Bytes
pip install torch torchvision torchaudio
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)