Skip to content

Commit

Permalink
Update chatgpt_values.py
Browse files Browse the repository at this point in the history
  • Loading branch information
salmon-raye committed Jan 21, 2024
1 parent 7b394b7 commit 608606e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions chatgpt_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
from paddleocr import PaddleOCR

# REMOVE THIS BEFORE COPYING TO GITHUB!
#API_KEY = os.environ['API_KEY']
API_KEY = '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'
API_KEY = os.environ['API_KEY']

client = OpenAI(api_key=API_KEY)

Expand Down Expand Up @@ -121,4 +120,4 @@ def extract_values(extracted_text):
]
)
test_results = json.loads(response.choices[0].message.content)
return response,test_results
return response,test_results

0 comments on commit 608606e

Please sign in to comment.