Spaces:
Runtime error
Runtime error
Commit ·
b00f841
1
Parent(s): ad2bd3d
debug statemet
Browse files
app.py
CHANGED
|
@@ -29,10 +29,11 @@ dbEngine = DbEngine(dbCreds)
|
|
| 29 |
|
| 30 |
tablesAndCols = getAllTablesInfo(dbEngine, SCHEMA_NAME)
|
| 31 |
metadataLayout = MetaDataLayout(schemaName=SCHEMA_NAME, allTablesAndCols=tablesAndCols)
|
|
|
|
|
|
|
| 32 |
metadataLayout.setSelection(DEFAULT_TABLES_COLS)
|
| 33 |
|
| 34 |
selectedTablesAndCols = metadataLayout.getSelectedTablesAndCols()
|
| 35 |
-
print(selectedTablesAndCols.keys(), "selected tables")
|
| 36 |
|
| 37 |
|
| 38 |
openAIClient = OpenAI(api_key=OPENAI_API_KEY)
|
|
|
|
| 29 |
|
| 30 |
tablesAndCols = getAllTablesInfo(dbEngine, SCHEMA_NAME)
|
| 31 |
metadataLayout = MetaDataLayout(schemaName=SCHEMA_NAME, allTablesAndCols=tablesAndCols)
|
| 32 |
+
print(tablesAndCols.keys(), "all tables.")
|
| 33 |
+
print(DEFAULT_TABLES_COLS.keys(), "default tables.")
|
| 34 |
metadataLayout.setSelection(DEFAULT_TABLES_COLS)
|
| 35 |
|
| 36 |
selectedTablesAndCols = metadataLayout.getSelectedTablesAndCols()
|
|
|
|
| 37 |
|
| 38 |
|
| 39 |
openAIClient = OpenAI(api_key=OPENAI_API_KEY)
|