Update app.py
Browse files
app.py
CHANGED
|
@@ -120,7 +120,7 @@ def upload_and_process(image, promptText, promptImg, lens_option, n_images, size
|
|
| 120 |
|
| 121 |
# Remove "Output:" from the string if found
|
| 122 |
if index != -1:
|
| 123 |
-
responses =
|
| 124 |
split_pairs = responses.split(" ")
|
| 125 |
pk =""
|
| 126 |
hk =""
|
|
|
|
| 120 |
|
| 121 |
# Remove "Output:" from the string if found
|
| 122 |
if index != -1:
|
| 123 |
+
responses = responses[:index] + responses[index + len("Output:"):]
|
| 124 |
split_pairs = responses.split(" ")
|
| 125 |
pk =""
|
| 126 |
hk =""
|