Deepak Pant
commited on
Commit
·
2debb96
1
Parent(s):
a5abd3b
updated containerized env
Browse files- .devcontainer/devcontainer.json +3 -0
- Dockerfile +1 -0
- docker-compose.yml +6 -1
- pyproject.toml +5 -1
- resume_maker_ai_agent/app.py +9 -2
.devcontainer/devcontainer.json
CHANGED
@@ -2,6 +2,9 @@
|
|
2 |
"name": "resume-maker-ai-agent",
|
3 |
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
4 |
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
|
|
|
|
|
|
|
5 |
"features": {
|
6 |
"ghcr.io/devcontainers/features/python:1": {
|
7 |
"version": "3.12"
|
|
|
2 |
"name": "resume-maker-ai-agent",
|
3 |
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
4 |
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
|
5 |
+
// "build": {
|
6 |
+
// "dockerfile": "Dockerfile"
|
7 |
+
// },
|
8 |
"features": {
|
9 |
"ghcr.io/devcontainers/features/python:1": {
|
10 |
"version": "3.12"
|
Dockerfile
CHANGED
@@ -54,6 +54,7 @@ COPY --chown=user --from=builder /app/dist/*.whl /app/
|
|
54 |
# Install the wheel file
|
55 |
RUN pip install --no-cache-dir /app/*.whl
|
56 |
|
|
|
57 |
# Expose application port
|
58 |
EXPOSE 7860
|
59 |
|
|
|
54 |
# Install the wheel file
|
55 |
RUN pip install --no-cache-dir /app/*.whl
|
56 |
|
57 |
+
|
58 |
# Expose application port
|
59 |
EXPOSE 7860
|
60 |
|
docker-compose.yml
CHANGED
@@ -11,6 +11,11 @@ services:
|
|
11 |
volumes:
|
12 |
- .:/app
|
13 |
environment:
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
15 |
command: >
|
16 |
resume_maker_ai_agent
|
|
|
11 |
volumes:
|
12 |
- .:/app
|
13 |
environment:
|
14 |
+
- PROVIDER=${PROVIDER}
|
15 |
+
- MODEL=${MODEL}
|
16 |
+
- EMBEDDER=${EMBEDDER}
|
17 |
+
- GEMINI_API_KEY=${GEMINI_API_KEY}
|
18 |
+
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
|
19 |
+
- SERPER_API_KEY=${SERPER_API_KEY}
|
20 |
command: >
|
21 |
resume_maker_ai_agent
|
pyproject.toml
CHANGED
@@ -72,7 +72,8 @@ warn_unused_ignores = true
|
|
72 |
show_error_codes = true
|
73 |
pretty = true
|
74 |
show_traceback = true
|
75 |
-
|
|
|
76 |
|
77 |
[[tool.mypy.overrides]]
|
78 |
module = [
|
@@ -84,10 +85,13 @@ module = [
|
|
84 |
"crewai_tools.*",
|
85 |
"bs4.*",
|
86 |
"streamlit.*",
|
|
|
|
|
87 |
"resume_maker_ai_agent.crew",
|
88 |
]
|
89 |
ignore_missing_imports = true
|
90 |
ignore_errors = true
|
|
|
91 |
|
92 |
|
93 |
[tool.pytest.ini_options]
|
|
|
72 |
show_error_codes = true
|
73 |
pretty = true
|
74 |
show_traceback = true
|
75 |
+
ignore_missing_imports = true
|
76 |
+
exclude = ['.venv/', 'venv/', '.env/', 'env/']
|
77 |
|
78 |
[[tool.mypy.overrides]]
|
79 |
module = [
|
|
|
85 |
"crewai_tools.*",
|
86 |
"bs4.*",
|
87 |
"streamlit.*",
|
88 |
+
"sql_connection.*",
|
89 |
+
"connections.*",
|
90 |
"resume_maker_ai_agent.crew",
|
91 |
]
|
92 |
ignore_missing_imports = true
|
93 |
ignore_errors = true
|
94 |
+
# disable_error_code = ["import-untyped", "import-not-found", "redundant-cast"]
|
95 |
|
96 |
|
97 |
[tool.pytest.ini_options]
|
resume_maker_ai_agent/app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
# import PyPDF2
|
2 |
|
3 |
# from docx import Document
|
4 |
-
# from docx.shared import Inches
|
5 |
import streamlit as st
|
6 |
|
7 |
# import tempfile
|
8 |
from resume_maker_ai_agent.services.app_service import run
|
|
|
9 |
|
10 |
|
11 |
def main() -> None:
|
@@ -15,7 +15,14 @@ def main() -> None:
|
|
15 |
st.write("Customize your resume for specific job descriptions using AI")
|
16 |
|
17 |
# File upload
|
18 |
-
uploaded_file = st.file_uploader(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
# Job description input
|
21 |
job_description = st.text_area("Enter the job description:", height=200)
|
|
|
1 |
# import PyPDF2
|
2 |
|
3 |
# from docx import Document
|
|
|
4 |
import streamlit as st
|
5 |
|
6 |
# import tempfile
|
7 |
from resume_maker_ai_agent.services.app_service import run
|
8 |
+
from streamlit.runtime.uploaded_file_manager import UploadedFile
|
9 |
|
10 |
|
11 |
def main() -> None:
|
|
|
15 |
st.write("Customize your resume for specific job descriptions using AI")
|
16 |
|
17 |
# File upload
|
18 |
+
uploaded_file: (UploadedFile | None) = st.file_uploader(
|
19 |
+
"Upload your resume (PDF)", type="pdf")
|
20 |
+
|
21 |
+
if uploaded_file is not None:
|
22 |
+
print("File uploaded successfully!")
|
23 |
+
print(f'File name: {uploaded_file.name}')
|
24 |
+
print(f'File type: {uploaded_file.type}')
|
25 |
+
print(f'File size: {uploaded_file.size}')
|
26 |
|
27 |
# Job description input
|
28 |
job_description = st.text_area("Enter the job description:", height=200)
|