Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -127,8 +127,8 @@ def create_agent_app(db_path: str):
|
|
127 |
# Construct the SQLite URI from the given file path.
|
128 |
# Ensure the db_path is absolute so that SQLAlchemy can locate the file.
|
129 |
abs_db_path = os.path.abspath(db_path)
|
130 |
-
DATABASE_URI = abs_db_path
|
131 |
global DATABASE_URI
|
|
|
132 |
db_uri = f"sqlite:///{abs_db_path}"
|
133 |
|
134 |
# Create new SQLDatabase connection using the constructed URI.
|
|
|
127 |
# Construct the SQLite URI from the given file path.
|
128 |
# Ensure the db_path is absolute so that SQLAlchemy can locate the file.
|
129 |
abs_db_path = os.path.abspath(db_path)
|
|
|
130 |
global DATABASE_URI
|
131 |
+
DATABASE_URI = abs_db_path
|
132 |
db_uri = f"sqlite:///{abs_db_path}"
|
133 |
|
134 |
# Create new SQLDatabase connection using the constructed URI.
|