HAHAHAHAHAH
This commit is contained in:
parent
d51bb4a562
commit
db278dcfd8
16
data.py
16
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()
|
||||
|
|
Loading…
Reference in New Issue