diff --git a/data.py b/data.py index 206e8bc..7002f5c 100755 --- a/data.py +++ b/data.py @@ -12,9 +12,17 @@ client = OpenAI( def app(): # data shit --> where does it come from??? data = OCR.image_to_string("input.png") - print(data) -""" -UNFINISHED -""" + complete = client.chat.completions.create( + model="gpt-3.5-turbo", + messages = [ + { + "role": "user", + "content": "parse the following data in JSON format: ${data}", + } + ]) + + print(complete.choices[0].message.content) + +app()