Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,7 +86,7 @@ def sql_engine(query: str) -> list:
|
|
| 86 |
results = [tuple(row) for row in rows]
|
| 87 |
return results or []
|
| 88 |
except Exception as e:
|
| 89 |
-
return [f"
|
| 90 |
|
| 91 |
# Dynamically describe tables for the agent
|
| 92 |
updated_description = "You can run SQL queries on these tables:\n"
|
|
|
|
| 86 |
results = [tuple(row) for row in rows]
|
| 87 |
return results or []
|
| 88 |
except Exception as e:
|
| 89 |
+
return [f" SQL Error: {str(e)}"]
|
| 90 |
|
| 91 |
# Dynamically describe tables for the agent
|
| 92 |
updated_description = "You can run SQL queries on these tables:\n"
|