KaiChen1998 commited on
Commit
b941daa
·
verified ·
1 Parent(s): e8e2c8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -233,6 +233,7 @@ def http_bot(state, temperature, top_p, max_new_tokens, speaker):
233
  logging.info(f"==== request ====\n{pload}")
234
 
235
  # Process inputs
 
236
  inputs = processor(text=[prompt], images=all_images if len(all_images) > 0 else None, return_tensors="pt")
237
  inputs.to(model.device)
238
  if len(all_images) > 0:
 
233
  logging.info(f"==== request ====\n{pload}")
234
 
235
  # Process inputs
236
+ logging.info(f"++++++++++++++++++++++++++++++++\n{prompt}\n")
237
  inputs = processor(text=[prompt], images=all_images if len(all_images) > 0 else None, return_tensors="pt")
238
  inputs.to(model.device)
239
  if len(all_images) > 0: