Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jrpereirajr committed Aug 4, 2024
1 parent 928d5e3 commit 1054b99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/sqlzilla/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def clean_response(response):
st.session_state.openai_api_key = api_key
st.success("Configuration updated!")

database_schema = None
if (st.session_state.namespace and st.session_state.openai_api_key):
sqlzilla = SQLZilla(db_connection_str(), st.session_state.openai_api_key)
# Initial prompts for namespace and database schema
Expand Down

0 comments on commit 1054b99

Please sign in to comment.