KaiChen1998 commited on
Commit
23991fe
·
1 Parent(s): 885de3a
Files changed (1) hide show
  1. app.py +4 -2
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][0])
146
  logging.info("=================")
147
- prompt = state.messages[-1][0][0]
 
 
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}")