30 unmodified lines3132333435363730 unmodified lines# model.to(device) @st.cache@st.emptydef btTranslator(docxfile): if torch.cuda.is_available(): dev = "cuda"