DifeiT commited on
Commit
4048405
1 Parent(s): b43f946

Update app.py & remove warning message

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -1,8 +1,6 @@
1
  # -*- coding: utf-8 -*-
2
  """
3
- Created on Mon Nov 21 16:21:25 2022
4
-
5
- @author: luol2
6
  """
7
 
8
  import streamlit as st
@@ -75,7 +73,7 @@ with st.form(key="my_form"):
75
  if ModelType == "Bioformer(Default)":
76
  # kw_model = KeyBERT(model=roberta)
77
 
78
- @st.cache(allow_output_mutation=True)
79
  def load_model(model='hpo'):
80
  if model =='1':
81
  ontfiles = {'dic_file': './dict_new_fyeco/noabb_lemma.dic',
@@ -111,7 +109,7 @@ with st.form(key="my_form"):
111
  nn_model2, biotag_dic2 = load_model(model='2')
112
 
113
  else:
114
- @st.cache(allow_output_mutation=True)
115
  def load_model():
116
  ontfiles={'dic_file':'./dict_new/noabb_lemma.dic',
117
  'word_hpo_file':'./dict_new/word_id_map.json',
 
1
  # -*- coding: utf-8 -*-
2
  """
3
+ Updated on 09/13/2023
 
 
4
  """
5
 
6
  import streamlit as st
 
73
  if ModelType == "Bioformer(Default)":
74
  # kw_model = KeyBERT(model=roberta)
75
 
76
+ @st.cache_data(allow_output_mutation=True)
77
  def load_model(model='hpo'):
78
  if model =='1':
79
  ontfiles = {'dic_file': './dict_new_fyeco/noabb_lemma.dic',
 
109
  nn_model2, biotag_dic2 = load_model(model='2')
110
 
111
  else:
112
+ @st.cache_data(allow_output_mutation=True)
113
  def load_model():
114
  ontfiles={'dic_file':'./dict_new/noabb_lemma.dic',
115
  'word_hpo_file':'./dict_new/word_id_map.json',