xianbao HF staff commited on
Commit
32ace45
1 Parent(s): ad46b55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -143,7 +143,8 @@ def _launch_demo(args, model, processor):
143
  text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
144
  image_inputs, video_inputs = process_vision_info(messages)
145
  inputs = processor(text=[text], images=image_inputs, videos=video_inputs, padding=True, return_tensors='pt').to(model.device)
146
-
 
147
  tokenizer = processor.tokenizer
148
  streamer = TextIteratorStreamer(tokenizer, timeout=20.0, skip_prompt=True, skip_special_tokens=True)
149
 
 
143
  text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
144
  image_inputs, video_inputs = process_vision_info(messages)
145
  inputs = processor(text=[text], images=image_inputs, videos=video_inputs, padding=True, return_tensors='pt').to(model.device)
146
+ print(inputs)
147
+
148
  tokenizer = processor.tokenizer
149
  streamer = TextIteratorStreamer(tokenizer, timeout=20.0, skip_prompt=True, skip_special_tokens=True)
150