Margerie commited on
Commit
ac424c0
·
verified ·
1 Parent(s): 2361e22

Update 1_📝_form.py

Browse files
Files changed (1) hide show
  1. 1_📝_form.py +3 -3
1_📝_form.py CHANGED
@@ -13,7 +13,7 @@ from middleMan import parse_into_jinja_markdown as pj
13
 
14
  import requests
15
 
16
- # @st.cache
17
  def get_icd():
18
  # Get ICD10 list
19
  token_endpoint = 'https://icdaccessmanagement.who.int/connect/token'
@@ -45,7 +45,7 @@ def get_icd():
45
  icd_map.append(r_child["code"]+" "+r_child["title"]["@value"])
46
  return icd_map
47
 
48
- # @st.cache
49
  def get_treatment_mod():
50
  url = "https://clinicaltables.nlm.nih.gov/loinc_answers?loinc_num=21964-2"
51
  r = requests.get(url).json()
@@ -53,7 +53,7 @@ def get_treatment_mod():
53
  return treatment_mod
54
 
55
 
56
- # @st.cache _data or _resource
57
  def get_cached_data():
58
  languages_df = pd.read_html("https://hf.co/languages")[0]
59
  languages_map = pd.Series(languages_df["Language"].values, index=languages_df["ISO code"]).to_dict()
 
13
 
14
  import requests
15
 
16
+ @st.cache
17
  def get_icd():
18
  # Get ICD10 list
19
  token_endpoint = 'https://icdaccessmanagement.who.int/connect/token'
 
45
  icd_map.append(r_child["code"]+" "+r_child["title"]["@value"])
46
  return icd_map
47
 
48
+ @st.cache
49
  def get_treatment_mod():
50
  url = "https://clinicaltables.nlm.nih.gov/loinc_answers?loinc_num=21964-2"
51
  r = requests.get(url).json()
 
53
  return treatment_mod
54
 
55
 
56
+ @st.cache _data or _resource
57
  def get_cached_data():
58
  languages_df = pd.read_html("https://hf.co/languages")[0]
59
  languages_map = pd.Series(languages_df["Language"].values, index=languages_df["ISO code"]).to_dict()