twdruhot commited on
Commit
f852a4f
·
1 Parent(s): 1b91973

Updated file path locations for dataframes

Browse files
Files changed (1) hide show
  1. Home.py +4 -7
Home.py CHANGED
@@ -85,8 +85,6 @@ def application():
85
  st.sidebar.success("Prompt " +str(status+1)+ " generated!")
86
  st.session_state.output_dict = {0:descs[0],1:descs[1],2:descs[2]}
87
 
88
-
89
-
90
  def title_check(next=0):
91
  if next==1:
92
  if st.session_state.title_iter == (len(st.session_state.output_dict[st.session_state.desc_iter]['titles'])-1):
@@ -141,11 +139,10 @@ def application():
141
  ###Data
142
  @st.cache_data
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")
146
- vector_df = pd.read_parquet('https://github.com/canunj/Auto-BoardGame/blob/main/Model_Step_Data/vector_df.parquet.gzip?raw=true')
147
- category_keys = reader("https://github.com/canunj/Auto-BoardGame/blob/main/Persistent%20Objects/current_keys.gz?raw=true")
148
- st.sidebar.success("Fetched Data!")
149
  return slim_df, search_tokens, vector_df, category_keys
150
 
151
  slim_df, search_tokens, vector_df, category_keys = fetch_data()
 
85
  st.sidebar.success("Prompt " +str(status+1)+ " generated!")
86
  st.session_state.output_dict = {0:descs[0],1:descs[1],2:descs[2]}
87
 
 
 
88
  def title_check(next=0):
89
  if next==1:
90
  if st.session_state.title_iter == (len(st.session_state.output_dict[st.session_state.desc_iter]['titles'])-1):
 
139
  ###Data
140
  @st.cache_data
141
  def fetch_data():
142
+ slim_df = pd.read_parquet('https://github.com/canunj/Auto-BoardGame/blob/main/Persistent_Data/slim_df.parquet.gzip?raw=true')
143
+ search_tokens = token_expand("https://github.com/canunj/Auto-BoardGame/blob/main/Persistent_Data/token_search.gz?raw=true")
144
+ vector_df = pd.read_parquet('https://github.com/canunj/Auto-BoardGame/blob/main/Persistent_Data/vector_df.parquet.gzip?raw=true')
145
+ category_keys = reader("https://github.com/canunj/Auto-BoardGame/blob/main/Persistent_Data/current_keys.gz?raw=true")
 
146
  return slim_df, search_tokens, vector_df, category_keys
147
 
148
  slim_df, search_tokens, vector_df, category_keys = fetch_data()