ambreshrc commited on
Commit
91882a6
1 Parent(s): 4fc4019

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -30,8 +30,7 @@ def getText(filename):
30
  # model = MarianMTModel.from_pretrained(mname)
31
  # model.to(device)
32
 
33
- @st.cache
34
- #st.empty()
35
  def btTranslator(docxfile):
36
  if torch.cuda.is_available():
37
  dev = "cuda"
@@ -121,4 +120,4 @@ st.download_button(label='Download Translated File',file_name=(f"{name}_Translat
121
 
122
  #st.sidebar.download_button(label='Download Translated File',file_name='Translated.docx', data=binary_output.getvalue())
123
  # st.text_area(label="",value=btTranslator(datas),height=100)
124
- # Footer
 
30
  # model = MarianMTModel.from_pretrained(mname)
31
  # model.to(device)
32
 
33
+ #@st.cache
 
34
  def btTranslator(docxfile):
35
  if torch.cuda.is_available():
36
  dev = "cuda"
 
120
 
121
  #st.sidebar.download_button(label='Download Translated File',file_name='Translated.docx', data=binary_output.getvalue())
122
  # st.text_area(label="",value=btTranslator(datas),height=100)
123
+ # Footer