Spaces:
Build error
Build error
Update app.py
Browse files21 unmodified lines22232425262728293031322 unmodified lines35363738394021 unmodified linesreturn '\n'.join(fullText)if torch.cuda.is_available():dev = "cuda"else:dev = "cpu"device = torch.device(dev)# mname = 'Helsinki-NLP/opus-mt-en-hi'# tokenizer = MarianTokenizer.from_pretrained(mname)2 unmodified lines#@st.cachedef btTranslator(docxfile):a=getText(docxfile)a1=a.split('\n')bigtext=''' '''21 unmodified lines222324252627282 unmodified lines313233343536373839404121 unmodified linesreturn '\n'.join(fullText)# mname = 'Helsinki-NLP/opus-mt-en-hi'# tokenizer = MarianTokenizer.from_pretrained(mname)2 unmodified lines#@st.cachedef btTranslator(docxfile):if torch.cuda.is_available():dev = "cuda"else:dev = "cpu"device = torch.device(dev)a=getText(docxfile)a1=a.split('\n')bigtext=''' '''
app.py+6-5