Commit ·
ae1fdb3
1
Parent(s): 95be82f
Initialisation of codebase
Browse files- .gitignore +6 -0
- README.md +1 -1
- configs/models.yaml +19 -0
- main.py +7 -12
- pyproject.toml +4 -1
- uv.lock +0 -0
.gitignore
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
data/raw/*
|
| 2 |
+
.cursor/*
|
| 3 |
+
.vscode/*
|
| 4 |
+
.venv/*
|
| 5 |
+
.git/*
|
| 6 |
+
|
README.md
CHANGED
|
@@ -6,7 +6,7 @@ colorTo: indigo
|
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 6.17.3
|
| 8 |
python_version: '3.12'
|
| 9 |
-
app_file:
|
| 10 |
pinned: false
|
| 11 |
license: apache-2.0
|
| 12 |
short_description: Multilingual AI assistant to guarantee fair pay
|
|
|
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 6.17.3
|
| 8 |
python_version: '3.12'
|
| 9 |
+
app_file: main.py
|
| 10 |
pinned: false
|
| 11 |
license: apache-2.0
|
| 12 |
short_description: Multilingual AI assistant to guarantee fair pay
|
configs/models.yaml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Model registry — pin every revision by SHA or explicit tag. Never `latest`.
|
| 2 |
+
# All entries are TBD placeholders; fill in `repo` and `revision` as models
|
| 3 |
+
# are chosen. Read by src/backend/config.py:load_models_config().
|
| 4 |
+
|
| 5 |
+
llm:
|
| 6 |
+
default: # Core LLM (default)
|
| 7 |
+
repo: # TBD — e.g. "org/model-name"
|
| 8 |
+
revision: # TBD — pin by SHA or tag
|
| 9 |
+
swap_in: # Core LLM (swap-in), one-line swap via get_llm_client()
|
| 10 |
+
repo: # TBD
|
| 11 |
+
revision: # TBD
|
| 12 |
+
|
| 13 |
+
embeddings: # directive RAG embeddings
|
| 14 |
+
repo: # TBD
|
| 15 |
+
revision: # TBD
|
| 16 |
+
|
| 17 |
+
parsing: # document parsing (OCR / table extraction)
|
| 18 |
+
repo: # TBD
|
| 19 |
+
revision: # TBD
|
main.py
CHANGED
|
@@ -1,15 +1,10 @@
|
|
| 1 |
-
|
| 2 |
-
import spaces
|
| 3 |
-
import torch
|
| 4 |
|
| 5 |
-
|
| 6 |
-
|
|
|
|
| 7 |
|
| 8 |
-
|
| 9 |
-
def greet(n):
|
| 10 |
-
print(zero.device) # <-- 'cuda:0' 🤗
|
| 11 |
-
return f"Hello {zero + n} Tensor"
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
demo.launch()
|
|
|
|
| 1 |
+
"""Thin entry point for the Pay Equity Gradio Space.
|
|
|
|
|
|
|
| 2 |
|
| 3 |
+
All orchestration lives in src/backend; this file only builds and launches the
|
| 4 |
+
server. HF Space `app_file` points here.
|
| 5 |
+
"""
|
| 6 |
|
| 7 |
+
from src.backend.server import build_server
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
+
if __name__ == "__main__":
|
| 10 |
+
build_server().launch(show_error=True)
|
|
|
pyproject.toml
CHANGED
|
@@ -7,5 +7,8 @@ requires-python = ">=3.12"
|
|
| 7 |
dependencies = [
|
| 8 |
"gradio>=6.17.3",
|
| 9 |
"spaces>=0.50.4",
|
| 10 |
-
"torch
|
| 11 |
]
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
dependencies = [
|
| 8 |
"gradio>=6.17.3",
|
| 9 |
"spaces>=0.50.4",
|
| 10 |
+
"torch",
|
| 11 |
]
|
| 12 |
+
|
| 13 |
+
[tool.uv]
|
| 14 |
+
extra-index-url = ["https://download.pytorch.org/whl/cu118"]
|
uv.lock
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|