Arafath10 commited on
Commit
d3f4fc2
·
verified ·
1 Parent(s): 82eb9f4

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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
- print(response.json()['choices'][0]['message']['content'])
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/")