Skip to content

Commit

Permalink
fix: use env variable instead of hard coded URI
Browse files Browse the repository at this point in the history
  • Loading branch information
MelihDarcanxyz committed Oct 3, 2024
1 parent a482fd7 commit e57caee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crossbar_llm/streamlit_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
}

neo4j_user = os.getenv("NEO4J_USER", "neo4j")
neo4j_uri = os.getenv("NEO4J_URI", "neo4j")
neo4j_password = os.getenv("MY_NEO4J_PASSWORD", "password")


Expand Down Expand Up @@ -359,7 +360,7 @@ def get_neo4j_statistics():

# If the file doesn't exist, query Neo4j and create the file
driver = neo4j.GraphDatabase.driver(
"bolt://localhost:7687", auth=(neo4j_user, neo4j_password)
neo4j_uri, auth=(neo4j_user, neo4j_password)
)
with driver.session() as session:
# Get individual label counts
Expand Down

0 comments on commit e57caee

Please sign in to comment.