cdleong commited on
Commit
090f4c1
1 Parent(s): cba4b15

caching some queries

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -34,6 +34,7 @@ things_to_test = [
34
  def get_bcp47_from_langcode(langtext):
35
  pass
36
 
 
37
  def pull_obsolete_codes(iso_code):
38
  session = HTMLSession()
39
  r= session.get(f"https://iso639-3.sil.org/code/{iso_code}")
 
34
  def get_bcp47_from_langcode(langtext):
35
  pass
36
 
37
+ @st.cache
38
  def pull_obsolete_codes(iso_code):
39
  session = HTMLSession()
40
  r= session.get(f"https://iso639-3.sil.org/code/{iso_code}")