Spaces:
Runtime error
Runtime error
path fix
Browse files
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):
|
|
@@ -145,7 +143,6 @@ def application():
|
|
| 145 |
search_tokens = token_expand("https://github.com/canunj/Auto-BoardGame/blob/main/Persistent_Data/token_search.gz?raw=true")
|
| 146 |
vector_df = pd.read_parquet('https://github.com/canunj/Auto-BoardGame/blob/main/Persistent_Data/vector_df.parquet.gzip?raw=true')
|
| 147 |
category_keys = reader("https://github.com/canunj/Auto-BoardGame/blob/main/Persistent_Data/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):
|
|
|
|
| 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()
|