Spaces:
Runtime error
Runtime error
Deepak Pant commited on
Commit ·
e395566
1
Parent(s): a5694ec
updated streamlit to be the part of the project
Browse files- Dockerfile +2 -0
- pyproject.toml +1 -7
- resume_maker_ai_agent/__main__.py +2 -1
Dockerfile
CHANGED
|
@@ -25,6 +25,7 @@ RUN poetry config virtualenvs.create false \
|
|
| 25 |
|
| 26 |
# Copy the rest of the application code
|
| 27 |
COPY --chown=user . /app
|
|
|
|
| 28 |
|
| 29 |
# Build the wheel file
|
| 30 |
RUN poetry build -f wheel
|
|
@@ -49,6 +50,7 @@ WORKDIR /app
|
|
| 49 |
|
| 50 |
# Copy the built wheel file from the builder stage
|
| 51 |
COPY --chown=user --from=builder /app/dist/*.whl /app/
|
|
|
|
| 52 |
|
| 53 |
RUN mkdir -p /app
|
| 54 |
RUN chmod 777 /app
|
|
|
|
| 25 |
|
| 26 |
# Copy the rest of the application code
|
| 27 |
COPY --chown=user . /app
|
| 28 |
+
COPY --chown=user .streamlit/ /home/user/.streamlit/
|
| 29 |
|
| 30 |
# Build the wheel file
|
| 31 |
RUN poetry build -f wheel
|
|
|
|
| 50 |
|
| 51 |
# Copy the built wheel file from the builder stage
|
| 52 |
COPY --chown=user --from=builder /app/dist/*.whl /app/
|
| 53 |
+
COPY --chown=user --from=builder /home/user/.streamlit/ /home/user/.streamlit/
|
| 54 |
|
| 55 |
RUN mkdir -p /app
|
| 56 |
RUN chmod 777 /app
|
pyproject.toml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
[project]
|
| 2 |
name = "resume_maker_ai_agent"
|
| 3 |
version = "0.0.1"
|
| 4 |
-
description = "This app will
|
| 5 |
readme = "README.md"
|
| 6 |
authors = [{ name = "Deepak Pant", email = "deepak.93p@gmail.com" }]
|
| 7 |
requires-python = ">=3.10,<=3.13"
|
|
@@ -12,12 +12,6 @@ dependencies = [
|
|
| 12 |
"pypdf (>=5.1.0,<6.0.0)",
|
| 13 |
"pysqlite3-binary >=0.5.4",
|
| 14 |
]
|
| 15 |
-
[tool.poetry]
|
| 16 |
-
package-mode = false
|
| 17 |
-
packages = [
|
| 18 |
-
{ include = "resume_maker_ai_agent" },
|
| 19 |
-
{ include = ".streamlit/**/*.toml" },
|
| 20 |
-
]
|
| 21 |
|
| 22 |
|
| 23 |
[project.urls]
|
|
|
|
| 1 |
[project]
|
| 2 |
name = "resume_maker_ai_agent"
|
| 3 |
version = "0.0.1"
|
| 4 |
+
description = "This app will modify the resume as per the job description."
|
| 5 |
readme = "README.md"
|
| 6 |
authors = [{ name = "Deepak Pant", email = "deepak.93p@gmail.com" }]
|
| 7 |
requires-python = ">=3.10,<=3.13"
|
|
|
|
| 12 |
"pypdf (>=5.1.0,<6.0.0)",
|
| 13 |
"pysqlite3-binary >=0.5.4",
|
| 14 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
[project.urls]
|
resume_maker_ai_agent/__main__.py
CHANGED
|
@@ -22,7 +22,8 @@ def main() -> None:
|
|
| 22 |
current_dir = Path(__file__).parent
|
| 23 |
streamlit_app_path = current_dir / "app.py"
|
| 24 |
|
| 25 |
-
sys.argv = ["streamlit", "run", str(
|
|
|
|
| 26 |
sys.exit(stcli.main())
|
| 27 |
|
| 28 |
|
|
|
|
| 22 |
current_dir = Path(__file__).parent
|
| 23 |
streamlit_app_path = current_dir / "app.py"
|
| 24 |
|
| 25 |
+
sys.argv = ["streamlit", "run", str(
|
| 26 |
+
streamlit_app_path), "--server.port", "7860", "--server.maxUploadSize", "10"]
|
| 27 |
sys.exit(stcli.main())
|
| 28 |
|
| 29 |
|