Spaces:
Sleeping
Sleeping
Melika Kheirieh
commited on
Commit
·
b432020
1
Parent(s):
5c95355
fix(ignore): whitelist data/demo.db in git and docker ignore rules
Browse files- .DS_Store +0 -0
- .dockerignore +18 -19
- .env +18 -0
- .gitignore +16 -41
- Dockerfile +8 -8
- adapters/.DS_Store +0 -0
- app/.DS_Store +0 -0
- benchmarks/.DS_Store +0 -0
- benchmarks/results/.DS_Store +0 -0
- scripts/.DS_Store +0 -0
- tests/.DS_Store +0 -0
.DS_Store
ADDED
|
Binary file (26.6 kB). View file
|
|
|
.dockerignore
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
.git
|
| 2 |
.gitignore
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
*.pytest_cache/
|
| 8 |
-
.mypy_cache/
|
| 9 |
-
.ruff_cache/
|
| 10 |
-
.venv/
|
| 11 |
-
.env
|
| 12 |
.env.*
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
| 15 |
dist/
|
| 16 |
build/
|
| 17 |
-
|
| 18 |
-
*.sqlite
|
| 19 |
-
*.db
|
| 20 |
-
tests/
|
| 21 |
-
benchmarks/results*/
|
| 22 |
-
data/spider/
|
| 23 |
-
docs/
|
| 24 |
-
.pytest_cache/
|
|
|
|
| 1 |
+
# Ignore all data except demo.db
|
| 2 |
+
data/*
|
| 3 |
+
!data/demo.db
|
| 4 |
+
|
| 5 |
+
# Python cache
|
| 6 |
+
__pycache__
|
| 7 |
+
*.pyc
|
| 8 |
+
|
| 9 |
+
# Git
|
| 10 |
.git
|
| 11 |
.gitignore
|
| 12 |
+
|
| 13 |
+
# Local environments
|
| 14 |
+
venv/
|
| 15 |
+
.env/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
.env.*
|
| 17 |
+
|
| 18 |
+
# Other files you don't want in Docker context
|
| 19 |
+
.vscode/
|
| 20 |
+
.idea/
|
| 21 |
dist/
|
| 22 |
build/
|
| 23 |
+
coverage/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.env
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ---- GAPGPT proxy (primary LLM provider) ----
|
| 2 |
+
PROXY_API_KEY=sk-uaCCiqgpPtQPYvhIVoJ76DxnMivVuy26uJ1NjTJ0mL1C8Hor
|
| 3 |
+
PROXY_BASE_URL=https://api.gapgpt.app/v1
|
| 4 |
+
|
| 5 |
+
# Optional: specify model name (defaults to gpt-4o-mini if omitted)
|
| 6 |
+
LLM_MODEL_ID=gpt-4o-mini
|
| 7 |
+
|
| 8 |
+
# ---- Database configs ----
|
| 9 |
+
DB_MODE=sqlite
|
| 10 |
+
DEFAULT_SQLITE_PATH=/Users/melikakheirieh/Desktop/my/career-developement/LLM/nl2sql-copilot/data/Chinook_Sqlite.sqlite
|
| 11 |
+
API_KEYS=dev-key
|
| 12 |
+
|
| 13 |
+
# ---- App meta ----
|
| 14 |
+
APP_VERSION=0.1.0
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
OPENAI_API_KEY=sk-uaCCiqgpPtQPYvhIVoJ76DxnMivVuy26uJ1NjTJ0mL1C8Hor
|
| 18 |
+
OPENAI_BASE_URL=https://api.gapgpt.app/v1
|
.gitignore
CHANGED
|
@@ -1,48 +1,23 @@
|
|
| 1 |
-
#
|
| 2 |
-
|
| 3 |
-
*.py[cod]
|
| 4 |
-
*.pyo
|
| 5 |
-
*.pyd
|
| 6 |
-
*.so
|
| 7 |
|
| 8 |
-
#
|
| 9 |
-
.
|
| 10 |
-
env/
|
| 11 |
-
venv/
|
| 12 |
|
| 13 |
-
#
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
.DS_Store
|
| 17 |
|
| 18 |
-
#
|
| 19 |
-
|
|
|
|
| 20 |
.env.*
|
| 21 |
-
*.key
|
| 22 |
-
*.pem
|
| 23 |
|
| 24 |
-
#
|
| 25 |
-
.
|
| 26 |
-
.
|
| 27 |
-
.ruff_cache/
|
| 28 |
-
.coverage
|
| 29 |
-
htmlcov/
|
| 30 |
|
| 31 |
-
#
|
| 32 |
-
build/
|
| 33 |
dist/
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
# --- Data & databases ---
|
| 38 |
-
data/*
|
| 39 |
-
*.sqlite
|
| 40 |
-
*.db
|
| 41 |
-
# allow demo database for the public demo
|
| 42 |
-
!data/demo.db
|
| 43 |
-
|
| 44 |
-
# --- Logs & temp files ---
|
| 45 |
-
logs/
|
| 46 |
-
*.log
|
| 47 |
-
tmp/
|
| 48 |
-
*.tmp
|
|
|
|
| 1 |
+
# Ignore entire data directory
|
| 2 |
+
data/*
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
+
# Allow only demo.db inside data/
|
| 5 |
+
!data/demo.db
|
|
|
|
|
|
|
| 6 |
|
| 7 |
+
# Python cache
|
| 8 |
+
__pycache__/
|
| 9 |
+
*.pyc
|
|
|
|
| 10 |
|
| 11 |
+
# venv
|
| 12 |
+
venv/
|
| 13 |
+
.env/
|
| 14 |
.env.*
|
|
|
|
|
|
|
| 15 |
|
| 16 |
+
# IDE
|
| 17 |
+
.vscode/
|
| 18 |
+
.idea/
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
+
# Build outputs
|
|
|
|
| 21 |
dist/
|
| 22 |
+
build/
|
| 23 |
+
coverage/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Dockerfile
CHANGED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
FROM python:3.12-slim
|
| 2 |
|
| 3 |
-
ENV
|
| 4 |
-
PYTHONDONTWRITEBYTECODE=1 \
|
| 5 |
PYTHONUNBUFFERED=1 \
|
|
|
|
| 6 |
PORT=7860 \
|
| 7 |
GRADIO_SERVER_NAME=0.0.0.0
|
| 8 |
|
| 9 |
WORKDIR /home/user/app
|
| 10 |
|
| 11 |
-
#
|
| 12 |
-
COPY requirements.txt
|
| 13 |
|
| 14 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 15 |
gcc build-essential && \
|
|
@@ -18,11 +18,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 18 |
apt-get purge -y gcc build-essential && \
|
| 19 |
apt-get autoremove -y && apt-get clean -y
|
| 20 |
|
| 21 |
-
#
|
| 22 |
-
COPY .
|
| 23 |
|
| 24 |
-
# Optional
|
| 25 |
-
RUN ls -R /home/user/app/data
|
| 26 |
|
| 27 |
EXPOSE 7860
|
| 28 |
|
|
|
|
| 1 |
FROM python:3.12-slim
|
| 2 |
|
| 3 |
+
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
|
|
| 4 |
PYTHONUNBUFFERED=1 \
|
| 5 |
+
PIP_NO_CACHE_DIR=1 \
|
| 6 |
PORT=7860 \
|
| 7 |
GRADIO_SERVER_NAME=0.0.0.0
|
| 8 |
|
| 9 |
WORKDIR /home/user/app
|
| 10 |
|
| 11 |
+
# Copy requirements first
|
| 12 |
+
COPY requirements.txt .
|
| 13 |
|
| 14 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 15 |
gcc build-essential && \
|
|
|
|
| 18 |
apt-get purge -y gcc build-essential && \
|
| 19 |
apt-get autoremove -y && apt-get clean -y
|
| 20 |
|
| 21 |
+
# Copy full repo — but due to .dockerignore, ONLY demo.db from data/ is included
|
| 22 |
+
COPY . .
|
| 23 |
|
| 24 |
+
# Optional debug
|
| 25 |
+
# RUN ls -R /home/user/app/data
|
| 26 |
|
| 27 |
EXPOSE 7860
|
| 28 |
|
adapters/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
app/.DS_Store
ADDED
|
Binary file (10.2 kB). View file
|
|
|
benchmarks/.DS_Store
ADDED
|
Binary file (10.2 kB). View file
|
|
|
benchmarks/results/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
scripts/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
tests/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|