File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -96,15 +96,15 @@ def get_vector_db(file_path: Path) -> Chroma:
96
96
return Chroma (persist_directory = str (file_path ), embedding_function = embeddings )
97
97
98
98
# Get query parameters
99
- query_params = st .query_params ()
100
- if "debug" in query_params and query_params ["debug" ][ 0 ] .lower () == "true" :
99
+ query_params = st .query_params
100
+ if "debug" in query_params and query_params ["debug" ].lower () == "true" :
101
101
st .session_state .DEBUG = True
102
102
103
103
if "DEBUG" in st .session_state and st .session_state .DEBUG :
104
104
DEBUG = True
105
105
106
106
if "site" in query_params :
107
- args .config = Path ("cfg" ) / f"""{ query_params ["site" ][ 0 ] .lower ()} .cfg"""
107
+ args .config = Path ("cfg" ) / f"""{ query_params ["site" ].lower ()} .cfg"""
108
108
109
109
if args .config is None :
110
110
st .error ("No site specified!" )
You can’t perform that action at this time.
0 commit comments