Skip to content

Commit

Permalink
step1: import your api key
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandro-ao committed Apr 29, 2023
1 parent 5cf5828 commit 3508b2d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
9 changes: 8 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import os
from dotenv import load_dotenv


def main():
# get api key
load_dotenv()
openai_key = os.environ['OPENAI_KEY']
print(openai_key)
# initialize pdf reader
# get raw text from pdf
# split text into chunks for token limit
Expand All @@ -9,4 +16,4 @@ def main():


if __name__ == '__main__':
main()
main()

0 comments on commit 3508b2d

Please sign in to comment.