HAHAHAHAHAH
This commit is contained in:
parent
d51bb4a562
commit
db278dcfd8
16
data.py
16
data.py
@ -12,9 +12,17 @@ client = OpenAI(
|
|||||||
def app():
|
def app():
|
||||||
# data shit --> where does it come from???
|
# data shit --> where does it come from???
|
||||||
data = OCR.image_to_string("input.png")
|
data = OCR.image_to_string("input.png")
|
||||||
|
|
||||||
print(data)
|
print(data)
|
||||||
|
|
||||||
"""
|
complete = client.chat.completions.create(
|
||||||
UNFINISHED
|
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
Block a user