Moncey10 commited on
Commit
804919e
·
verified ·
1 Parent(s): 06faa40

Upload 3 files

Browse files
Files changed (3) hide show
  1. Dockerfile +18 -0
  2. config.py +22 -0
  3. requirment.txt +6 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Copy requirements first (better layer caching)
6
+ COPY requirements.txt .
7
+
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ # Copy app files
11
+ COPY app_enhanced.py .
12
+ COPY config.py .
13
+ COPY artifacts/ ./artifacts/
14
+
15
+ # Hugging Face uses port 7860
16
+ EXPOSE 7860
17
+
18
+ CMD ["bash", "-lc", "uvicorn app_enhanced:app --host 0.0.0.0 --port ${PORT:-7860}"]
config.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ RECOMMENDATION_WEIGHTS = {
2
+ "embedding": 0.3,
3
+ "dataset": 0.6,
4
+ "collaborative": 0.1
5
+ }
6
+
7
+ MIN_CONFIDENCE_THRESHOLD = 0.15
8
+ MIN_SOURCES_REQUIRED = 1
9
+ DATASET_SKILLS_BYPASS_SOURCE_CHECK = True
10
+ PREFER_DATASET_SKILLS = True
11
+ DATASET_BONUS = 0.1
12
+
13
+ ROLE_MATCH_THRESHOLD = 70
14
+ SKILL_MATCH_THRESHOLD = 80
15
+
16
+ DEFAULT_TOP_K = 20
17
+ DEFAULT_MIN_CONFIDENCE = 0.25
18
+ MAX_TOP_K = 100
19
+ CANDIDATE_MULTIPLIER = 3
20
+
21
+ USE_CUSTOM_FILTER = False
22
+ custom_skill_filter = None
requirment.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ fastapi
2
+ uvicorn[standard]
3
+ numpy
4
+ scikit-learn
5
+ rapidfuzz
6
+ pydantic