Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
23991fe
1
Parent(s):
885de3a
debug
Browse files
app.py
CHANGED
@@ -142,9 +142,11 @@ def http_bot(state):
|
|
142 |
logging.info("=================")
|
143 |
logging.info(state.messages[-1])
|
144 |
logging.info("=================")
|
145 |
-
logging.info(state.messages[-1][
|
146 |
logging.info("=================")
|
147 |
-
|
|
|
|
|
148 |
all_images = state.get_images(return_pil=True)[0]
|
149 |
pload = {"prompt": prompt, "images": f'List of {len(state.get_images())} images: {all_images}'}
|
150 |
logging.info(f"==== request ====\n{pload}")
|
|
|
142 |
logging.info("=================")
|
143 |
logging.info(state.messages[-1])
|
144 |
logging.info("=================")
|
145 |
+
logging.info(state.messages[-1][-1])
|
146 |
logging.info("=================")
|
147 |
+
logging.info(state.messages[-1][-1][0])
|
148 |
+
logging.info("=================")
|
149 |
+
prompt = state.messages[-1][-1][0]
|
150 |
all_images = state.get_images(return_pil=True)[0]
|
151 |
pload = {"prompt": prompt, "images": f'List of {len(state.get_images())} images: {all_images}'}
|
152 |
logging.info(f"==== request ====\n{pload}")
|