Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -126,6 +126,9 @@ def create_agent_app(db_path: str):
|
|
126 |
# Create new SQLDatabase connection using the constructed URI.
|
127 |
from langchain_community.utilities import SQLDatabase
|
128 |
db_instance = SQLDatabase.from_uri(db_uri)
|
|
|
|
|
|
|
129 |
|
130 |
# Create SQL toolkit and get the tools.
|
131 |
from langchain_community.agent_toolkits import SQLDatabaseToolkit
|
|
|
126 |
# Create new SQLDatabase connection using the constructed URI.
|
127 |
from langchain_community.utilities import SQLDatabase
|
128 |
db_instance = SQLDatabase.from_uri(db_uri)
|
129 |
+
print("db_instance----->",db_instance)
|
130 |
+
print("db_uri----->",db_uri)
|
131 |
+
|
132 |
|
133 |
# Create SQL toolkit and get the tools.
|
134 |
from langchain_community.agent_toolkits import SQLDatabaseToolkit
|