Update app.py
Browse files
app.py
CHANGED
|
@@ -110,12 +110,13 @@ def upload_and_process(image, promptText, promptImg, lens_option, n_images, size
|
|
| 110 |
# Remove backdrop
|
| 111 |
responses = chatgpt_chain.predict(human_input=promptText)
|
| 112 |
print(responses)
|
|
|
|
| 113 |
#responses = json.loads(responses)
|
| 114 |
|
| 115 |
dall_e_prompt = promptImg + " , " + lens_option
|
| 116 |
-
primary = responses
|
| 117 |
-
headline = responses
|
| 118 |
-
description = responses
|
| 119 |
# Generate variations using DALL-E
|
| 120 |
removeBackdrop(image_path, "temp_no_bg.png")
|
| 121 |
NoBackImg = "temp_no_bg.png"
|
|
|
|
| 110 |
# Remove backdrop
|
| 111 |
responses = chatgpt_chain.predict(human_input=promptText)
|
| 112 |
print(responses)
|
| 113 |
+
print(typeof(responses))
|
| 114 |
#responses = json.loads(responses)
|
| 115 |
|
| 116 |
dall_e_prompt = promptImg + " , " + lens_option
|
| 117 |
+
primary = responses
|
| 118 |
+
headline = responses
|
| 119 |
+
description = responses
|
| 120 |
# Generate variations using DALL-E
|
| 121 |
removeBackdrop(image_path, "temp_no_bg.png")
|
| 122 |
NoBackImg = "temp_no_bg.png"
|