Spaces:
Runtime error
Runtime error
mertcobanov
commited on
Merge branch 'main' into seperate_gui
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def openai_response(ocr_input):
|
|
55 |
"""
|
56 |
|
57 |
openai_client = OpenAI_API()
|
58 |
-
response = openai_client.single_request(
|
59 |
resp = response["choices"][0]["text"]
|
60 |
print(resp)
|
61 |
resp = eval(resp.replace("'{", "{").replace("}'", "}"))
|
|
|
55 |
"""
|
56 |
|
57 |
openai_client = OpenAI_API()
|
58 |
+
response = openai_client.single_request(prompt)
|
59 |
resp = response["choices"][0]["text"]
|
60 |
print(resp)
|
61 |
resp = eval(resp.replace("'{", "{").replace("}'", "}"))
|