ViniciusKhan commited on
Commit
633407c
·
1 Parent(s): 35b5dfb

Add root route and readme endpoint

Browse files
Files changed (3) hide show
  1. .gitignore +61 -0
  2. Dockerfile +1 -4
  3. requirements.txt +4 -2
.gitignore ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # =========================
2
+ # 🐍 Python
3
+ # =========================
4
+ __pycache__/
5
+ *.py[cod]
6
+ *$py.class
7
+
8
+ # Envs
9
+ .env
10
+ .venv/
11
+ env/
12
+ venv/
13
+ ENV/
14
+
15
+ # Logs e temporários
16
+ *.log
17
+ *.tmp
18
+ *.bak
19
+ *.swp
20
+ .DS_Store
21
+ Thumbs.db
22
+
23
+ # Caches
24
+ .ipynb_checkpoints/
25
+ .pytest_cache/
26
+ .cache/
27
+ dist/
28
+ build/
29
+ *.egg-info/
30
+
31
+ # =========================
32
+ # 📦 IDEs e editores
33
+ # =========================
34
+ .vscode/
35
+ .idea/
36
+ *.code-workspace
37
+
38
+ # =========================
39
+ # 🐳 Docker / Hugging Face
40
+ # =========================
41
+ # (mantém Dockerfile e requirements.txt)
42
+ !Dockerfile
43
+ !requirements.txt
44
+
45
+ # =========================
46
+ # 🤖 Model artifacts
47
+ # =========================
48
+ # Mantém os arquivos do modelo (importantes!)
49
+ !model/
50
+ !model/preprocess.joblib
51
+ !model/xgb_model.joblib
52
+ !model/metadata.json
53
+
54
+ # =========================
55
+ # 🧪 Notebooks e dados locais
56
+ # =========================
57
+ *.ipynb
58
+ data/
59
+ datasets/
60
+ notebooks/
61
+ artifacts_iverify/
Dockerfile CHANGED
@@ -1,19 +1,16 @@
1
  FROM python:3.10-slim
2
-
3
  WORKDIR /app
4
 
5
  RUN apt-get update && apt-get install -y --no-install-recommends \
6
- build-essential gcc g++ tzdata && \
7
  rm -rf /var/lib/apt/lists/*
8
 
9
  COPY requirements.txt .
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
  COPY app.py .
13
- # ✅ copie a pasta correta:
14
  COPY model/ model/
15
 
16
- # ✅ alinhe com app.py (ARTIFACT_DIR=model)
17
  ENV ARTIFACT_DIR=model
18
  ENV PORT=7860
19
 
 
1
  FROM python:3.10-slim
 
2
  WORKDIR /app
3
 
4
  RUN apt-get update && apt-get install -y --no-install-recommends \
5
+ build-essential gcc g++ tzdata libgomp1 && \
6
  rm -rf /var/lib/apt/lists/*
7
 
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
  COPY app.py .
 
12
  COPY model/ model/
13
 
 
14
  ENV ARTIFACT_DIR=model
15
  ENV PORT=7860
16
 
requirements.txt CHANGED
@@ -1,8 +1,10 @@
1
  fastapi==0.115.6
2
  uvicorn==0.32.1
3
- numpy==1.26.0
4
  pandas==2.2.2
5
  scikit-learn==1.6.1
 
 
6
  xgboost==2.1.1
7
- lightgbm==4.3.0
8
  joblib==1.4.2
 
1
  fastapi==0.115.6
2
  uvicorn==0.32.1
3
+ numpy==1.26.4
4
  pandas==2.2.2
5
  scikit-learn==1.6.1
6
+ matplotlib==3.8.4
7
+ imbalanced-learn==0.12.3
8
  xgboost==2.1.1
9
+ shap==0.45.1
10
  joblib==1.4.2