File size: 518 Bytes
121d4d0
 
30960a5
df4252c
30960a5
7d69880
 
 
 
30960a5
 
 
 
 
 
df4252c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)