From 5ee1a7c1352c46b5ca5424516672b0fb49dd52fa Mon Sep 17 00:00:00 2001 From: Hamza Date: Sun, 23 Jun 2024 15:05:13 +0900 Subject: [PATCH 1/3] add load_dotenv to load env vars automatically --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index b95e039..9b2623f 100644 --- a/main.py +++ b/main.py @@ -4,6 +4,9 @@ import os from io import BytesIO from md2pdf.core import md2pdf +from dotenv import load_dotenv + +load_dotenv() GROQ_API_KEY = os.environ.get("GROQ_API_KEY", None) From f0581dd7cbdc6ca5a4160f925de6e0e427d29b45 Mon Sep 17 00:00:00 2001 From: Hamza Date: Sun, 23 Jun 2024 15:09:00 +0900 Subject: [PATCH 2/3] update streamlit and install dot_env --- requirements.txt | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index b94da6c..9a6fdc8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,18 +3,24 @@ annotated-types==0.6.0 anyio==4.3.0 attrs==23.2.0 blinker==1.8.2 +Brotli==1.1.0 cachetools==5.3.3 certifi==2024.2.2 +cffi==1.16.0 charset-normalizer==3.3.2 click==8.1.7 +cssselect2==0.7.0 defusedxml==0.7.1 distro==1.9.0 +docopt==0.6.2 +exceptiongroup==1.2.1 fonttools==4.51.0 fpdf2==2.7.9 gitdb==4.0.11 GitPython==3.1.43 groq==0.6.0 h11==0.14.0 +html5lib==1.1 httpcore==1.0.5 httpx==0.27.0 idna==3.7 @@ -22,7 +28,9 @@ Jinja2==3.1.4 jsonschema==4.22.0 jsonschema-specifications==2023.12.1 markdown-it-py==3.0.0 +markdown2==2.4.13 MarkupSafe==2.1.5 +md2pdf==1.0.1 mdurl==0.1.2 numpy==1.26.4 packaging==24.0 @@ -30,11 +38,15 @@ pandas==2.2.2 pillow==10.3.0 protobuf==4.25.3 pyarrow==16.1.0 +pycparser==2.22 pydantic==2.7.1 pydantic_core==2.18.2 pydeck==0.9.1 +pydyf==0.10.0 Pygments==2.18.0 +pyphen==0.15.0 python-dateutil==2.9.0.post0 +python-dotenv==1.0.1 pytz==2024.1 referencing==0.35.1 requests==2.31.0 @@ -43,13 +55,15 @@ rpds-py==0.18.1 six==1.16.0 smmap==5.0.1 sniffio==1.3.1 -streamlit==1.34.0 +streamlit==1.36.0 tenacity==8.3.0 +tinycss2==1.3.0 toml==0.10.2 toolz==0.12.1 tornado==6.4 typing_extensions==4.11.0 tzdata==2024.1 urllib3==2.2.1 -weasyprint -md2pdf \ No newline at end of file +weasyprint==62.3 +webencodings==0.5.1 +zopfli==0.2.3 From 9647677dea1922f11419d8a44a94a8abd981171d Mon Sep 17 00:00:00 2001 From: Hamza Date: Sun, 23 Jun 2024 15:09:18 +0900 Subject: [PATCH 3/3] add .venv format of virtual env to .gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 50a19c6..686ade3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .env -venv \ No newline at end of file +venv +.venv \ No newline at end of file