cdleong commited on
Commit
236ba5e
1 Parent(s): b81a5c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -34,7 +34,7 @@ things_to_test = [
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}")
@@ -49,7 +49,7 @@ def pull_obsolete_codes(iso_code):
49
  obsolete_codes[obsolete_code_name] = code
50
  return obsolete_codes
51
 
52
- @st.cache
53
  def try_retrieving_glottolog_id(langtext):
54
  languoid_id = ""
55
  langtext_quoted = urllib.parse.quote(langtext)
@@ -62,13 +62,13 @@ def try_retrieving_glottolog_id(langtext):
62
  languoid_id = last_section
63
  return languoid_id
64
 
65
- @st.cache
66
  def get_glottolog_json(languoid_id):
67
  query_url=f"https://glottolog.org/resource/languoid/id/{languoid_id}.json"
68
  glottolog_r = session.get(query_url)
69
  return glottolog_r.json()
70
 
71
- @st.cache
72
  def try_searching_vachan_engine(langtext):
73
  results_list = []
74
  langtext_quoted = urllib.parse.quote(langtext)
 
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}")
 
49
  obsolete_codes[obsolete_code_name] = code
50
  return obsolete_codes
51
 
52
+ #@st.cache
53
  def try_retrieving_glottolog_id(langtext):
54
  languoid_id = ""
55
  langtext_quoted = urllib.parse.quote(langtext)
 
62
  languoid_id = last_section
63
  return languoid_id
64
 
65
+ #@st.cache
66
  def get_glottolog_json(languoid_id):
67
  query_url=f"https://glottolog.org/resource/languoid/id/{languoid_id}.json"
68
  glottolog_r = session.get(query_url)
69
  return glottolog_r.json()
70
 
71
+ #@st.cache
72
  def try_searching_vachan_engine(langtext):
73
  results_list = []
74
  langtext_quoted = urllib.parse.quote(langtext)