30 unmodified lines313233343435363730 unmodified lines# model.to(device) @st.cache@st.emptyst.empty()def btTranslator(docxfile): if torch.cuda.is_available(): dev = "cuda"