Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -279,8 +279,8 @@ def upload_file(files) -> List[str]:
|
|
| 279 |
shutil.copy2(file.name, path)
|
| 280 |
|
| 281 |
stored_paths.append(str(path))
|
| 282 |
-
|
| 283 |
-
desc = f"Table: {filename}\nColumns:\n{
|
| 284 |
stored_table_descriptions.append(desc)
|
| 285 |
tables.append(filename)
|
| 286 |
|
|
|
|
| 279 |
shutil.copy2(file.name, path)
|
| 280 |
|
| 281 |
stored_paths.append(str(path))
|
| 282 |
+
table_description_temp = identify_column_datatypes_to_SQL_DEF(pd.read_csv(path), api_key, model)
|
| 283 |
+
desc = f"Table: {filename}\nColumns:\n{table_description_temp}"
|
| 284 |
stored_table_descriptions.append(desc)
|
| 285 |
tables.append(filename)
|
| 286 |
|