Davidtran99
commited on
Commit
·
9be9c7a
1
Parent(s):
faebf07
Add backend code + Docker entrypoint for HF Space
Browse files- README.md +2 -2
- backend/hue_portal/hue-portal-backendDocker +0 -1
- entrypoint.sh +0 -0
README.md
CHANGED
|
@@ -11,7 +11,7 @@ license: apache-2.0
|
|
| 11 |
|
| 12 |
## Deployment Notes
|
| 13 |
|
| 14 |
-
This Space packages the Django backend (
|
| 15 |
|
| 16 |
### Environment variables required
|
| 17 |
|
|
@@ -22,7 +22,7 @@ Set the following secrets in **Settings → Repository secrets** before building
|
|
| 22 |
| `DATABASE_URL` | PostgreSQL connection string (Railway instance) with `?sslmode=require`. |
|
| 23 |
| `DJANGO_SECRET_KEY` | Secret key for Django. |
|
| 24 |
| `DJANGO_ALLOWED_HOSTS` | e.g. `*.hf.space,localhost`. |
|
| 25 |
-
| `
|
| 26 |
|
| 27 |
### Startup process
|
| 28 |
|
|
|
|
| 11 |
|
| 12 |
## Deployment Notes
|
| 13 |
|
| 14 |
+
This Space packages the Django backend (OCR + RAG stack) from the `TryHarDemNayProject` repo. It installs the full backend inside the container and exposes the API on port **7860** via Gunicorn.
|
| 15 |
|
| 16 |
### Environment variables required
|
| 17 |
|
|
|
|
| 22 |
| `DATABASE_URL` | PostgreSQL connection string (Railway instance) with `?sslmode=require`. |
|
| 23 |
| `DJANGO_SECRET_KEY` | Secret key for Django. |
|
| 24 |
| `DJANGO_ALLOWED_HOSTS` | e.g. `*.hf.space,localhost`. |
|
| 25 |
+
| `DEFAULT_LLM_PROVIDER`, `LLM_PROVIDER`, etc. | Optional overrides reused from the original `.env`. |
|
| 26 |
|
| 27 |
### Startup process
|
| 28 |
|
backend/hue_portal/hue-portal-backendDocker
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
Subproject commit 102a6a4ce3788e6b3d6ebc8b9e1a149cb49bc375
|
|
|
|
|
|
entrypoint.sh
CHANGED
|
File without changes
|