Update app.py
Browse files
app.py
CHANGED
@@ -64,6 +64,7 @@ def gpt_inference(base_url, model, openai_key, prompt):
|
|
64 |
return "Error: " + response.text, 500
|
65 |
|
66 |
code = extract_code(response.json()["choices"][0]["message"]["content"])
|
|
|
67 |
img = execute_code(code)
|
68 |
return img
|
69 |
|
|
|
64 |
return "Error: " + response.text, 500
|
65 |
|
66 |
code = extract_code(response.json()["choices"][0]["message"]["content"])
|
67 |
+
print(f"code:{code}")
|
68 |
img = execute_code(code)
|
69 |
return img
|
70 |
|