Spaces:
Build error
Build error
Merge pull request #18 from fsa-simpleqt/NhanHT
Browse filesPhase2/NhanHT: Add docker file and docker compose
- .dockerignore +2 -0
- app/modules/question_tests_retrieval/models/jd2text.py +1 -1
- docker-compose.yaml +13 -0
- dockerfile +11 -0
- main.py +1 -1
- requirements.txt +1 -2
.dockerignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
venv/
|
2 |
+
__pycache__/
|
app/modules/question_tests_retrieval/models/jd2text.py
CHANGED
@@ -27,7 +27,7 @@ def jobdes2text(jobdes):
|
|
27 |
"""Return Job title, level(Fresher, Junior, Senior, ...) and Brief summary of required skills about 20 words from the job description. Use the following format: Job Title is {job title}, Level is {level}, and Brief summary of required skills is {brief summary of required skills}."""
|
28 |
)
|
29 |
),
|
30 |
-
HumanMessagePromptTemplate.from_template("{text}"),
|
31 |
]
|
32 |
)
|
33 |
|
|
|
27 |
"""Return Job title, level(Fresher, Junior, Senior, ...) and Brief summary of required skills about 20 words from the job description. Use the following format: Job Title is {job title}, Level is {level}, and Brief summary of required skills is {brief summary of required skills}."""
|
28 |
)
|
29 |
),
|
30 |
+
HumanMessagePromptTemplate.from_template("{text}"),
|
31 |
]
|
32 |
)
|
33 |
|
docker-compose.yaml
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
version: '3.8'
|
2 |
+
|
3 |
+
services:
|
4 |
+
app:
|
5 |
+
build: .
|
6 |
+
container_name: "cv_container"
|
7 |
+
image: "cv-image"
|
8 |
+
ports:
|
9 |
+
- 7860:7860
|
10 |
+
volumes:
|
11 |
+
- .:/code
|
12 |
+
env_file:
|
13 |
+
- .env
|
dockerfile
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10.9
|
2 |
+
|
3 |
+
WORKDIR /code
|
4 |
+
|
5 |
+
COPY ./requirements.txt /code/requirements.txt
|
6 |
+
|
7 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
+
|
9 |
+
COPY . .
|
10 |
+
|
11 |
+
CMD ["python", "main.py"]
|
main.py
CHANGED
@@ -11,4 +11,4 @@ async def index():
|
|
11 |
|
12 |
|
13 |
if __name__ == "__main__":
|
14 |
-
uvicorn.run("main:app", reload=True, host="
|
|
|
11 |
|
12 |
|
13 |
if __name__ == "__main__":
|
14 |
+
uvicorn.run("main:app", reload=True, host="0.0.0.0", port=7860)
|
requirements.txt
CHANGED
@@ -67,7 +67,7 @@ protobuf==4.25.3
|
|
67 |
pyasn1==0.5.1
|
68 |
pyasn1-modules==0.3.0
|
69 |
pycparser==2.21
|
70 |
-
pydantic==2.6.3
|
71 |
pydantic-extra-types==2.6.0
|
72 |
pydantic-settings==2.2.1
|
73 |
pydantic_core==2.16.3
|
@@ -76,7 +76,6 @@ pyparsing==3.1.2
|
|
76 |
python-docx==1.1.0
|
77 |
python-dotenv==1.0.1
|
78 |
python-multipart==0.0.9
|
79 |
-
pywin32==306
|
80 |
PyYAML==6.0.1
|
81 |
qdrant-client==1.8.0
|
82 |
requests==2.31.0
|
|
|
67 |
pyasn1==0.5.1
|
68 |
pyasn1-modules==0.3.0
|
69 |
pycparser==2.21
|
70 |
+
pydantic==2.6.3
|
71 |
pydantic-extra-types==2.6.0
|
72 |
pydantic-settings==2.2.1
|
73 |
pydantic_core==2.16.3
|
|
|
76 |
python-docx==1.1.0
|
77 |
python-dotenv==1.0.1
|
78 |
python-multipart==0.0.9
|
|
|
79 |
PyYAML==6.0.1
|
80 |
qdrant-client==1.8.0
|
81 |
requests==2.31.0
|