Deepak Pant
commited on
Commit
Β·
a5abd3b
1
Parent(s):
c6d9110
Fixed poetry version in the Docerfile
Browse files
Dockerfile
CHANGED
@@ -4,7 +4,7 @@ FROM python:3.12-slim AS builder
|
|
4 |
RUN useradd -m -u 1000 user
|
5 |
|
6 |
# Set environment variables for Poetry
|
7 |
-
ENV POETRY_VERSION=
|
8 |
POETRY_HOME="/opt/poetry" \
|
9 |
PATH="/opt/poetry/bin:$PATH"
|
10 |
|
@@ -21,7 +21,7 @@ COPY --chown=user pyproject.toml poetry.lock /app/
|
|
21 |
|
22 |
# Install dependencies (only for building the wheel)
|
23 |
RUN poetry config virtualenvs.create false \
|
24 |
-
&& poetry install --no-root
|
25 |
|
26 |
# Copy the rest of the application code
|
27 |
COPY --chown=user . /app
|
|
|
4 |
RUN useradd -m -u 1000 user
|
5 |
|
6 |
# Set environment variables for Poetry
|
7 |
+
ENV POETRY_VERSION=2.0.0 \
|
8 |
POETRY_HOME="/opt/poetry" \
|
9 |
PATH="/opt/poetry/bin:$PATH"
|
10 |
|
|
|
21 |
|
22 |
# Install dependencies (only for building the wheel)
|
23 |
RUN poetry config virtualenvs.create false \
|
24 |
+
&& poetry install --no-root
|
25 |
|
26 |
# Copy the rest of the application code
|
27 |
COPY --chown=user . /app
|
resume_maker_ai_agent/app.py
CHANGED
@@ -9,7 +9,6 @@ from resume_maker_ai_agent.services.app_service import run
|
|
9 |
|
10 |
|
11 |
def main() -> None:
|
12 |
-
print("main......")
|
13 |
st.set_page_config(page_title="Resume Maker AI", page_icon="π")
|
14 |
|
15 |
st.title("Resume Maker AI")
|
|
|
9 |
|
10 |
|
11 |
def main() -> None:
|
|
|
12 |
st.set_page_config(page_title="Resume Maker AI", page_icon="π")
|
13 |
|
14 |
st.title("Resume Maker AI")
|
resume_maker_ai_agent/services/app_service.py
CHANGED
@@ -34,6 +34,9 @@ def run(pdf_file_path: UploadedFile, job_description: str) -> str:
|
|
34 |
print("Running the crew")
|
35 |
inputs = {"resume_text": resume_text, "job_description": job_description}
|
36 |
result = ResumeMakerAIAgent().crew().kickoff(inputs=inputs)
|
|
|
|
|
|
|
37 |
|
38 |
return str(result.raw)
|
39 |
|
|
|
34 |
print("Running the crew")
|
35 |
inputs = {"resume_text": resume_text, "job_description": job_description}
|
36 |
result = ResumeMakerAIAgent().crew().kickoff(inputs=inputs)
|
37 |
+
print("Done")
|
38 |
+
|
39 |
+
print(result.raw)
|
40 |
|
41 |
return str(result.raw)
|
42 |
|