From 0f17db5846c503db716d72cbce60f161df79aa41 Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Wed, 4 Oct 2023 16:54:54 -0400 Subject: [PATCH 01/24] Added Dev Container Folder --- .devcontainer/devcontainer.json | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..c67eabf --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,33 @@ +{ + "name": "Python 3", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye", + "customizations": { + "codespaces": { + "openFiles": [ + "README.md", + "src/gui.py" + ] + }, + "vscode": { + "settings": {}, + "extensions": [ + "ms-python.python", + "ms-python.vscode-pylance" + ] + } + }, + "updateContentCommand": "[ -f packages.txt ] && sudo apt update && sudo apt upgrade -y && sudo xargs apt install -y Date: Wed, 4 Oct 2023 17:37:40 -0400 Subject: [PATCH 02/24] Update gui.py --- src/gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui.py b/src/gui.py index 3159930..f9cfef4 100644 --- a/src/gui.py +++ b/src/gui.py @@ -1,5 +1,5 @@ -__version__ = "0.4.8.3" -app_name = "Ask my PDF" +__version__ = "1.4.6.1" +app_name = "EduX - AskMyPDF" # BOILERPLATE From 16167e8f22e6751ee6d4096b011de26ee701fc0d Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Sun, 8 Oct 2023 11:27:33 -0400 Subject: [PATCH 03/24] Update gui.py --- src/gui.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/gui.py b/src/gui.py index f9cfef4..14dd557 100644 --- a/src/gui.py +++ b/src/gui.py @@ -63,20 +63,19 @@ def ui_info(): # Ask my PDF version {__version__} - Question answering system built on top of GPT3. + Degree Scheduling using GPT3. """) ui_spacer(1) - st.write("Made by [Maciej Obarski](https://www.linkedin.com/in/mobarski/).", unsafe_allow_html=True) + st.write("Made by [EduX Team](https://www.edux.ai).", unsafe_allow_html=True) ui_spacer(1) st.markdown(""" - Thank you for your interest in my application. - Please be aware that this is only a Proof of Concept system + We value your feedback on our application. + Please be aware that this is in Beta and may contain bugs or unfinished features. - If you like this app you can ❤️ [follow me](https://twitter.com/KerbalFPV) - on Twitter for news and updates. + Your graduation is our priority, we are working dilligently to remove unwanted stress and issues in your pathway. ❤️ """) ui_spacer(1) - st.markdown('Source code can be found [here](https://github.com/mobarski/ask-my-pdf).') + st.markdown('Check out our documentation [here](https://www.edux.ai/docs/product/getting-started/introduction).') def ui_api_key(): if ss['community_user']: From 91119685bfecd5378349fec22a69ea70adaa1007 Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Sun, 8 Oct 2023 11:29:14 -0400 Subject: [PATCH 04/24] Update gui.py --- src/gui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui.py b/src/gui.py index 14dd557..cd72d2a 100644 --- a/src/gui.py +++ b/src/gui.py @@ -1,5 +1,5 @@ -__version__ = "1.4.6.1" -app_name = "EduX - AskMyPDF" +__version__ = "1.0" +app_name = "EduXGPT" # BOILERPLATE @@ -60,7 +60,7 @@ def ui_spacer(n=2, line=False, next_n=0): def ui_info(): st.markdown(f""" - # Ask my PDF + # EduXGPT version {__version__} Degree Scheduling using GPT3. From 357781e8aaa0a4441eb8ed653f48390da84842ff Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Sun, 8 Oct 2023 11:31:04 -0400 Subject: [PATCH 05/24] Update gui.py --- src/gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui.py b/src/gui.py index cd72d2a..79c66da 100644 --- a/src/gui.py +++ b/src/gui.py @@ -119,7 +119,7 @@ def debug_index(): ss['debug']['index'] = d def ui_pdf_file(): - st.write('## 2. Upload or select your PDF file') + st.write('## 2. Upload your Academic PDF Audit') disabled = not ss.get('user') or (not ss.get('api_key') and not ss.get('community_pct',0)) t1,t2 = st.tabs(['UPLOAD','SELECT']) with t1: @@ -187,7 +187,7 @@ def ui_hyde_prompt(): st.text_area('HyDE prompt', prompts.HYDE, key='hyde_prompt') def ui_question(): - st.write('## 3. Ask questions'+(f' to {ss["filename"]}' if ss.get('filename') else '')) + st.write('## 3. Generating your best route'+(f' to {ss["filename"]}' if ss.get('filename') else '')) disabled = False st.text_area('question', key='question', height=100, placeholder='Enter question here', help='', label_visibility="collapsed", disabled=disabled) From 2ee0e94dc68f1f0175978da9a17e54ce3999b71b Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Sun, 8 Oct 2023 11:33:11 -0400 Subject: [PATCH 06/24] Update gui.py --- src/gui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui.py b/src/gui.py index 79c66da..abe4690 100644 --- a/src/gui.py +++ b/src/gui.py @@ -187,7 +187,7 @@ def ui_hyde_prompt(): st.text_area('HyDE prompt', prompts.HYDE, key='hyde_prompt') def ui_question(): - st.write('## 3. Generating your best route'+(f' to {ss["filename"]}' if ss.get('filename') else '')) + st.write('## 3. List Course Preferences and Schedule Limitations'+(f' to {ss["filename"]}' if ss.get('filename') else '')) disabled = False st.text_area('question', key='question', height=100, placeholder='Enter question here', help='', label_visibility="collapsed", disabled=disabled) @@ -216,8 +216,8 @@ def b_ask(): ss['feedback_score'] = ss['feedback'].get_score() score = ss.get('feedback_score',0) c5.write(f'feedback score: {score}') - c4.checkbox('send details', True, key='send_details', - help='allow question and the answer to be stored in the ask-my-pdf feedback database') + c4.checkbox('Analytics', True, key='send_details', + help='Allow your PDF Degree Audit data to be used towards our research') #c1,c2,c3 = st.columns([1,3,1]) #c2.radio('zzz',['👍',r'...',r'👎'],horizontal=True,label_visibility="collapsed") # From e22a79d9782ceb081e7e6769fee4e08bfc05be2d Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Sun, 8 Oct 2023 11:35:19 -0400 Subject: [PATCH 07/24] Update gui.py --- src/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui.py b/src/gui.py index abe4690..45fbab3 100644 --- a/src/gui.py +++ b/src/gui.py @@ -222,7 +222,7 @@ def b_ask(): #c2.radio('zzz',['👍',r'...',r'👎'],horizontal=True,label_visibility="collapsed") # disabled = (not ss.get('api_key') and not ss.get('community_pct',0)) or not ss.get('index') - if c1.button('get answer', disabled=disabled, type='primary', use_container_width=True): + if c1.button('Calculate Route', disabled=disabled, type='primary', use_container_width=True): question = ss.get('question','') temperature = ss.get('temperature', 0.0) hyde = ss.get('use_hyde') From 35836602a2e7eeb0faa40fb27c455bd13d4bfb63 Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Sun, 8 Oct 2023 12:35:51 -0400 Subject: [PATCH 08/24] Update gui.py --- src/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui.py b/src/gui.py index 45fbab3..518a890 100644 --- a/src/gui.py +++ b/src/gui.py @@ -305,7 +305,7 @@ def output_add(q,a): with st.sidebar: ui_info() ui_spacer(2) - with st.expander('advanced'): + with st.expander('Advanced (For Developers)'): ui_show_debug() b_clear() ui_model() From e72c19e88b7bb7c917c1c088fe339040a4d84d36 Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Sun, 8 Oct 2023 12:36:57 -0400 Subject: [PATCH 09/24] Update gui.py --- src/gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui.py b/src/gui.py index 518a890..361c431 100644 --- a/src/gui.py +++ b/src/gui.py @@ -280,8 +280,8 @@ def b_save(): api_key = ss.get('api_key') disabled = not api_key or not db or not index or not name help = "The file will be stored for about 90 days. Available only when using your own API key." - if st.button('save encrypted index in ask-my-pdf', disabled=disabled, help=help): - with st.spinner('saving to ask-my-pdf'): + if st.button('Save encrypted data in EduX Database', disabled=disabled, help=help): + with st.spinner('Saving to EduX'): db.put(name, index) def b_delete(): From 71c2d2d998a1599c75386db2ddda960fc2c714b0 Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Sun, 8 Oct 2023 12:37:21 -0400 Subject: [PATCH 10/24] Update gui.py --- src/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui.py b/src/gui.py index 361c431..d336402 100644 --- a/src/gui.py +++ b/src/gui.py @@ -280,7 +280,7 @@ def b_save(): api_key = ss.get('api_key') disabled = not api_key or not db or not index or not name help = "The file will be stored for about 90 days. Available only when using your own API key." - if st.button('Save encrypted data in EduX Database', disabled=disabled, help=help): + if st.button('Save encrypted data to EduX Database', disabled=disabled, help=help): with st.spinner('Saving to EduX'): db.put(name, index) From 554cad683d8fbbd6394e469ad54650fe174d1905 Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Sun, 8 Oct 2023 12:41:38 -0400 Subject: [PATCH 11/24] Update gui.py --- src/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui.py b/src/gui.py index d336402..3edc7f7 100644 --- a/src/gui.py +++ b/src/gui.py @@ -215,7 +215,7 @@ def b_ask(): ss['feedback'].send(-1, ss, details=ss['send_details']) ss['feedback_score'] = ss['feedback'].get_score() score = ss.get('feedback_score',0) - c5.write(f'feedback score: {score}') + c5.write(f'Paths Calculated: {score}') c4.checkbox('Analytics', True, key='send_details', help='Allow your PDF Degree Audit data to be used towards our research') #c1,c2,c3 = st.columns([1,3,1]) From 7b722df48c59d42f15c41916979623df35c2137f Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Mon, 9 Oct 2023 17:19:45 -0400 Subject: [PATCH 12/24] Update ai.py --- src/ai.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ai.py b/src/ai.py index b982ff2..8a49de0 100644 --- a/src/ai.py +++ b/src/ai.py @@ -4,6 +4,8 @@ DEFAULT_USER = os.getenv('COMMUNITY_USER','') +ai.use_key("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") + def use_key(key): openai.use_key(key) From 0551969a8f1d3a644ddfa2f297314e1d8afe36c5 Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Mon, 9 Oct 2023 18:29:52 -0400 Subject: [PATCH 13/24] Update gui.py --- src/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui.py b/src/gui.py index 3edc7f7..d1be9a0 100644 --- a/src/gui.py +++ b/src/gui.py @@ -189,7 +189,7 @@ def ui_hyde_prompt(): def ui_question(): st.write('## 3. List Course Preferences and Schedule Limitations'+(f' to {ss["filename"]}' if ss.get('filename') else '')) disabled = False - st.text_area('question', key='question', height=100, placeholder='Enter question here', help='', label_visibility="collapsed", disabled=disabled) + st.text_area('question', key='question', height=100, placeholder='Enter text here', help='', label_visibility="collapsed", disabled=disabled) # REF: Hypotetical Document Embeddings def ui_hyde_answer(): From 0fcf33a792165753c378770fa6f10b19989d25d4 Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Mon, 9 Oct 2023 18:33:20 -0400 Subject: [PATCH 14/24] Update ai.py --- src/ai.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ai.py b/src/ai.py index 8a49de0..b982ff2 100644 --- a/src/ai.py +++ b/src/ai.py @@ -4,8 +4,6 @@ DEFAULT_USER = os.getenv('COMMUNITY_USER','') -ai.use_key("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") - def use_key(key): openai.use_key(key) From 79cbc9842cb6fae089661646a412b431ed278e47 Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Mon, 9 Oct 2023 18:37:37 -0400 Subject: [PATCH 15/24] Update prompts.py --- src/prompts.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/prompts.py b/src/prompts.py index 7c64484..4768000 100644 --- a/src/prompts.py +++ b/src/prompts.py @@ -4,13 +4,9 @@ TASK = { 'v6': ( - "Answer the question truthfully based on the text below. " - "Include verbatim quote and a comment where to find it in the text (page number). " - #"After the quote write a step by step explanation in a new paragraph. " - "After the quote write a step by step explanation. " - "Use bullet points. " - #"After that try to rephrase the original question so it might give better results. " - ), + "Create a UI table from the PDF that lists: Full Name (usually under 'Prepared:'), Student ID (across 'Prepared:'), Program code (without '(Page 1)'), Graduation date (without '(Page 1)'), GPA (without '(Page 1)') and Catalog year (is underneath Graduation Date and without '(Page 1)'). " + "Create another UI table underneath and fill in the table from the specific data from this PDF including General University Requirements, Core Courses, Electives, and fill in the table with class name, credits, and whether completed or incomplete (based on OK or NO). Group the courses such as Core courses together separate from the electives, and general education classes and also include the grade received (if the grade is C- or better it's considered OK)." +), 'v5': ( "Answer the question truthfully based on the text below. " "Include at least one verbatim quote (marked with quotation marks) and a comment where to find it in the text (ie name of the section and page number). " From 92240c0a6b313275a83d954268981c044701f7b7 Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Sun, 22 Oct 2023 10:21:19 -0400 Subject: [PATCH 16/24] Create program_data.py --- program_data.py | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 program_data.py diff --git a/program_data.py b/program_data.py new file mode 100644 index 0000000..0c90e60 --- /dev/null +++ b/program_data.py @@ -0,0 +1,46 @@ +# program_data.py + +# Custom table plan for ELEENG-BS (Electrical Engineering) +eleeng_bs_plan = { + "Semester 1": { + "Required Courses": ["Course A", "Course B"], + "Electives": ["Elective X", "Elective Y"], + "Additional Notes": "Place Course A in the first semester." + }, + "Semester 2": { + "Required Courses": ["Course C", "Course D"], + "Electives": ["Elective Z"], + "Additional Notes": "Course D is a prerequisite for Course E." + }, + # Continue for all 8 semesters +} + +# Custom table plan for BIOLOGY-BS (Biology) +biology_bs_plan = { + "Semester 1": { + "Required Courses": ["Intro to Biology", "Chemistry 101"], + "Electives": ["General Education Elective X"], + "Additional Notes": "Complete Biology lab in Semester 2." + }, + "Semester 2": { + "Required Courses": ["Biology Lab", "Chemistry 102"], + "Electives": ["General Education Elective Y"], + "Additional Notes": "Course C is a prerequisite for Course D." + }, + # Continue for all semesters +} + +# Custom table plan for CSCIENCE-BS (Computer Science) +cscience_bs_plan = { + "Semester 1": { + "Required Courses": ["Intro to Computer Science", "Discrete Math"], + "Electives": ["General Education Elective A"], + "Additional Notes": "Start with fundamental courses." + }, + "Semester 2": { + "Required Courses": ["Data Structures", "Computer Architecture"], + "Electives": ["General Education Elective B"], + "Additional Notes": "Course X is a prerequisite for Course Y." + }, + # Continue for all semesters +} From 31f2eb327bf0d5d0648bbe84d0cf8290b9d7ae06 Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Sun, 22 Oct 2023 10:24:34 -0400 Subject: [PATCH 17/24] Update css.py --- src/css.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/css.py b/src/css.py index 9e2e223..49f3f2c 100644 --- a/src/css.py +++ b/src/css.py @@ -1,4 +1,22 @@ v1 = """ + +/* custom.css */ + +/* Hide the Share button */ +.stButton.shareButton { + display: none; +} + +/* Hide the Star (Bookmark) button */ +.stBookmark { + display: none; +} + +/* Hide the GitHub button */ +.stGithub { + display: none; +} + /* feedback checkbox */ .css-18fuwiq { position: relative; From c27afd770cc0ec123cd99270831c59c59e9eb935 Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Sun, 22 Oct 2023 10:26:26 -0400 Subject: [PATCH 18/24] Update css.py --- src/css.py | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/css.py b/src/css.py index 49f3f2c..ae481c2 100644 --- a/src/css.py +++ b/src/css.py @@ -1,20 +1,7 @@ v1 = """ -/* custom.css */ - -/* Hide the Share button */ -.stButton.shareButton { - display: none; -} - -/* Hide the Star (Bookmark) button */ -.stBookmark { - display: none; -} - -/* Hide the GitHub button */ -.stGithub { - display: none; +#GithubIcon { + visibility: hidden; } /* feedback checkbox */ From 6601bc326cf37544e7b86dd5199f222adb8a9625 Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Sun, 22 Oct 2023 10:28:32 -0400 Subject: [PATCH 19/24] Update gui.py --- src/gui.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gui.py b/src/gui.py index d1be9a0..ec3085d 100644 --- a/src/gui.py +++ b/src/gui.py @@ -14,6 +14,13 @@ header2 = st.empty() # for errors / messages header3 = st.empty() # for errors / messages +hide_github_icon = """ +#GithubIcon { + visibility: hidden; +} +""" +st.markdown(hide_github_icon, unsafe_allow_html=True) + # IMPORTS import prompts From d749f1db7d14faa70254331ed4b1a305ca28e306 Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Sun, 22 Oct 2023 10:30:57 -0400 Subject: [PATCH 20/24] Update gui.py --- src/gui.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/gui.py b/src/gui.py index ec3085d..d1be9a0 100644 --- a/src/gui.py +++ b/src/gui.py @@ -14,13 +14,6 @@ header2 = st.empty() # for errors / messages header3 = st.empty() # for errors / messages -hide_github_icon = """ -#GithubIcon { - visibility: hidden; -} -""" -st.markdown(hide_github_icon, unsafe_allow_html=True) - # IMPORTS import prompts From 15154196917a198e4446a82cc17b719dd9b6b6c2 Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Sun, 22 Oct 2023 10:31:09 -0400 Subject: [PATCH 21/24] Update css.py --- src/css.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/css.py b/src/css.py index ae481c2..d5e407d 100644 --- a/src/css.py +++ b/src/css.py @@ -1,9 +1,5 @@ v1 = """ -#GithubIcon { - visibility: hidden; -} - /* feedback checkbox */ .css-18fuwiq { position: relative; From 53ab7f2a039e1b95e206d342b62dfec932e8a3ab Mon Sep 17 00:00:00 2001 From: bhargav-11 Date: Mon, 30 Oct 2023 22:43:04 +0530 Subject: [PATCH 22/24] added env variables using library --- .env | 3 +++ .gitignore | 1 + requirements.txt | 1 + src/gui.py | 5 +++++ 4 files changed, 10 insertions(+) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..d074d7a --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +COMMUNITY_USER="bhargav" +OPENAI_KEY="sk-" +COMMUNITY_DAILY_USD="1" \ No newline at end of file diff --git a/.gitignore b/.gitignore index 5e9c0ff..e27ca2f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ **/__pycache__ **/*secret*.* data/** +venv/ diff --git a/requirements.txt b/requirements.txt index 48bff83..6d1ccda 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,3 +7,4 @@ pycryptodome boto3 redis retry +python-dotenv \ No newline at end of file diff --git a/src/gui.py b/src/gui.py index d1be9a0..9835b4b 100644 --- a/src/gui.py +++ b/src/gui.py @@ -25,6 +25,11 @@ from time import time as now +import os +from dotenv import load_dotenv + +load_dotenv() + # HANDLERS def on_api_key_change(): From 6c11e598fb300429433bb2f7bafd5a19221da067 Mon Sep 17 00:00:00 2001 From: bhargav-11 Date: Mon, 30 Oct 2023 22:49:11 +0530 Subject: [PATCH 23/24] added env variables using library --- .env | 3 +++ .gitignore | 1 + requirements.txt | 1 + src/gui.py | 5 +++++ 4 files changed, 10 insertions(+) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..d074d7a --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +COMMUNITY_USER="bhargav" +OPENAI_KEY="sk-" +COMMUNITY_DAILY_USD="1" \ No newline at end of file diff --git a/.gitignore b/.gitignore index 5e9c0ff..e27ca2f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ **/__pycache__ **/*secret*.* data/** +venv/ diff --git a/requirements.txt b/requirements.txt index 48bff83..6d1ccda 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,3 +7,4 @@ pycryptodome boto3 redis retry +python-dotenv \ No newline at end of file diff --git a/src/gui.py b/src/gui.py index d1be9a0..9835b4b 100644 --- a/src/gui.py +++ b/src/gui.py @@ -25,6 +25,11 @@ from time import time as now +import os +from dotenv import load_dotenv + +load_dotenv() + # HANDLERS def on_api_key_change(): From dff557d054730bad735a3db99fbac3c83a80f35d Mon Sep 17 00:00:00 2001 From: Ahmed Ibreljic Date: Mon, 30 Oct 2023 13:38:32 -0400 Subject: [PATCH 24/24] Update .env --- .env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.env b/.env index d074d7a..006dcdb 100644 --- a/.env +++ b/.env @@ -1,3 +1,3 @@ COMMUNITY_USER="bhargav" -OPENAI_KEY="sk-" -COMMUNITY_DAILY_USD="1" \ No newline at end of file +OPENAI_KEY="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" +COMMUNITY_DAILY_USD="1"