Update app.py
Browse files
app.py
CHANGED
|
@@ -115,7 +115,9 @@ def upload_and_process(image, promptText, promptImg, lens_option, n_images, size
|
|
| 115 |
# image.save(image_path)
|
| 116 |
# Remove backdrop
|
| 117 |
responses = chatgpt_chain.predict(human_input=promptText)
|
| 118 |
-
print(
|
|
|
|
|
|
|
| 119 |
|
| 120 |
# json_string = responses.strip()
|
| 121 |
|
|
|
|
| 115 |
# image.save(image_path)
|
| 116 |
# Remove backdrop
|
| 117 |
responses = chatgpt_chain.predict(human_input=promptText)
|
| 118 |
+
print(type(responses))
|
| 119 |
+
print(json.dumps(responses, indent=2,ensure_ascii=False))
|
| 120 |
+
print(type(json.dumps(responses, indent=2,ensure_ascii=False)))
|
| 121 |
|
| 122 |
# json_string = responses.strip()
|
| 123 |
|