24Sureshkumar commited on
Commit
ad1e2cd
·
verified ·
1 Parent(s): 9bdb949

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ def load_css():
24
  </style>""",
25
  unsafe_allow_html=True,
26
  )
27
-
28
  def load_all_models():
29
  from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
30
 
 
24
  </style>""",
25
  unsafe_allow_html=True,
26
  )
27
+ @st.cache_resource(show_spinner=False)
28
  def load_all_models():
29
  from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
30