Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,6 +42,8 @@ db = SQLDatabase.from_uri(f"sqlite:///{db_loc}")
|
|
| 42 |
# Retrieve the schema information of the database tables
|
| 43 |
database_schema = db.get_table_info()
|
| 44 |
|
|
|
|
|
|
|
| 45 |
#=================================Logging=====================================#
|
| 46 |
|
| 47 |
|
|
@@ -377,7 +379,7 @@ chatbot = AzureChatOpenAI(
|
|
| 377 |
model_name=model_name,
|
| 378 |
api_key=openai_key,
|
| 379 |
azure_endpoint=azure_endpoint,
|
| 380 |
-
api_version=
|
| 381 |
temperature=0
|
| 382 |
)
|
| 383 |
|
|
|
|
| 42 |
# Retrieve the schema information of the database tables
|
| 43 |
database_schema = db.get_table_info()
|
| 44 |
|
| 45 |
+
st.write(database_schema)
|
| 46 |
+
|
| 47 |
#=================================Logging=====================================#
|
| 48 |
|
| 49 |
|
|
|
|
| 379 |
model_name=model_name,
|
| 380 |
api_key=openai_key,
|
| 381 |
azure_endpoint=azure_endpoint,
|
| 382 |
+
api_version=api_version,
|
| 383 |
temperature=0
|
| 384 |
)
|
| 385 |
|