Update main.py
Browse files
main.py
CHANGED
@@ -82,7 +82,7 @@ def vision(image):
|
|
82 |
|
83 |
response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
|
84 |
|
85 |
-
|
86 |
|
87 |
|
88 |
@app.post("/get_ocr_data/")
|
|
|
82 |
|
83 |
response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
|
84 |
|
85 |
+
return response.json()['choices'][0]['message']['content']
|
86 |
|
87 |
|
88 |
@app.post("/get_ocr_data/")
|