Nick Canu commited on
Commit
fcb429b
·
1 Parent(s): d3af178

streamlit version rollback

Browse files
Files changed (1) hide show
  1. Home.py +2 -2
Home.py CHANGED
@@ -139,7 +139,7 @@ def application():
139
  ###Variables
140
 
141
  ###Data
142
- @st.cache_resource
143
  def fetch_data():
144
  slim_df = pd.read_parquet('https://github.com/canunj/Auto-BoardGame/blob/main/Model_Step_Data/slim_df.parquet.gzip?raw=true')
145
  search_tokens = token_expand("https://github.com/canunj/Auto-BoardGame/blob/main/Persistent%20Objects/token_search.gz?raw=true")
@@ -158,7 +158,7 @@ def application():
158
  "[Aa]ge [Oo]f [Ee]mpires","Doctor Who"]
159
 
160
  ###Models
161
- @st.cache_resource
162
  def setup_models():
163
  return Title_Generator('./t5_model', slim_df), input_manager(vector_df, slim_df, search_tokens), model_control(apikey=st.secrets.key,model_id=st.secrets.model)
164
 
 
139
  ###Variables
140
 
141
  ###Data
142
+ @st.cache
143
  def fetch_data():
144
  slim_df = pd.read_parquet('https://github.com/canunj/Auto-BoardGame/blob/main/Model_Step_Data/slim_df.parquet.gzip?raw=true')
145
  search_tokens = token_expand("https://github.com/canunj/Auto-BoardGame/blob/main/Persistent%20Objects/token_search.gz?raw=true")
 
158
  "[Aa]ge [Oo]f [Ee]mpires","Doctor Who"]
159
 
160
  ###Models
161
+ @st.cache
162
  def setup_models():
163
  return Title_Generator('./t5_model', slim_df), input_manager(vector_df, slim_df, search_tokens), model_control(apikey=st.secrets.key,model_id=st.secrets.model)
164