Spaces:
Running
Running
sqlbot commited on
Commit ·
efbc9d0
1
Parent(s): 28035e9
Configure Space to use Docker SDK
Browse files
README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: sqlbot
|
| 3 |
+
emoji: 🧠
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_port: 7860
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
## sqlbot — AI SQL Analyst
|
| 11 |
+
|
| 12 |
+
This Space runs a FastAPI app that lets you ask natural-language questions about your PostgreSQL database and get:
|
| 13 |
+
|
| 14 |
+
- Generated SQL
|
| 15 |
+
- Executed query results
|
| 16 |
+
- Explanations and insights
|
| 17 |
+
|
| 18 |
+
### Deployment notes
|
| 19 |
+
|
| 20 |
+
- The backend FastAPI app is defined in `app.py`.
|
| 21 |
+
- The Docker image is built from `Dockerfile` and exposes port `7860`.
|
| 22 |
+
- The app connects to PostgreSQL via the `DATABASE_URL` environment variable (configured in the Space settings, e.g., a Neon connection string).
|
| 23 |
+
|