merve HF staff commited on
Commit
63d4bdf
1 Parent(s): 742cd79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -82,8 +82,8 @@ def openai_response(ocr_input):
82
 
83
  openai_client = OpenAI_API()
84
  response = openai_client.single_request(prompt)
85
- resp = response["choices"][0]["text"]
86
  print(resp)
 
87
  resp = eval(resp.replace("'{", "{").replace("}'", "}"))
88
  resp["input"] = ocr_input
89
  dict_keys = [
 
82
 
83
  openai_client = OpenAI_API()
84
  response = openai_client.single_request(prompt)
 
85
  print(resp)
86
+ resp = response["choices"][0]["text"]
87
  resp = eval(resp.replace("'{", "{").replace("}'", "}"))
88
  resp["input"] = ocr_input
89
  dict_keys = [