Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 = [
|