-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: EYFS activity plan * feat: Add prompt selection * feat: Add prompts * feat: Use openai api * feat: Add more requirements * chore: Get api key * chore: Remove verbose * feat: Enchancements based on feedback * feat: Update prompt * feat: Modify the prompt * chore: Temporarily remove the prompt selector * feat: Update readme * feat: Add prompts * feat: Refactor app and activity planner * chore: Remove langchain prompts * chore: Remove one of the todos * chore: Update setup instructions * feat: Create Dockerfile and update readme * feat: Update docstrings and app text
- Loading branch information
Showing
15 changed files
with
522 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Use an official Python runtime as a parent image | ||
FROM python:3.9.17-slim | ||
|
||
# Set environment varibles | ||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
# Install system dependencies | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends gcc | ||
|
||
# Install poetry | ||
RUN pip install "poetry==1.5.1" | ||
|
||
# Set the working directory in the Docker image | ||
WORKDIR /app | ||
|
||
# Copy only requirements to cache them in docker layer | ||
COPY pyproject.toml poetry.lock ./ | ||
COPY src/genai /app/src/genai | ||
COPY README.md /app/README.md | ||
COPY app.py /app/app.py | ||
|
||
# Don't push the image to dockerhub | ||
COPY .env /app/.env | ||
COPY .streamlit /app/.streamlit | ||
|
||
# Project initialization: | ||
RUN poetry config virtualenvs.create false \ | ||
&& poetry install --no-interaction --no-ansi | ||
|
||
EXPOSE 8501 | ||
# Specify the command to run your application | ||
CMD ["streamlit", "run", "app.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.