Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -122,7 +122,7 @@ def openai_response(ocr_input):
|
|
122 |
"""
|
123 |
|
124 |
openai_client = OpenAI_API()
|
125 |
-
response = openai_client.single_request(
|
126 |
resp = response["choices"][0]["text"]
|
127 |
print(resp)
|
128 |
resp = eval(resp.replace("'{", "{").replace("}'", "}"))
|
|
|
122 |
"""
|
123 |
|
124 |
openai_client = OpenAI_API()
|
125 |
+
response = openai_client.single_request(prompt)
|
126 |
resp = response["choices"][0]["text"]
|
127 |
print(resp)
|
128 |
resp = eval(resp.replace("'{", "{").replace("}'", "}"))
|