HAHAHAHAHAH

This commit is contained in:
Agnosto Dvonik 2024-02-24 13:28:59 -05:00
parent d51bb4a562
commit db278dcfd8
1 changed files with 12 additions and 4 deletions

16
data.py
View File

@ -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()