paralym commited on
Commit
a7858c4
·
verified ·
1 Parent(s): 03976b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -384,12 +384,12 @@ def bot(history, temperature, top_p, max_output_tokens):
384
  )
385
  print(our_chatbot.model.device)
386
  print(input_ids.device)
387
- print(image_tensor.device)
388
 
389
  generate_kwargs = dict(
390
  inputs=input_ids,
391
  streamer=streamer,
392
- images=image_tensor if num_new_images > 0 else None,
393
  do_sample=True,
394
  temperature=temperature,
395
  top_p=top_p,
 
384
  )
385
  print(our_chatbot.model.device)
386
  print(input_ids.device)
387
+ # print(image_tensor.device)
388
 
389
  generate_kwargs = dict(
390
  inputs=input_ids,
391
  streamer=streamer,
392
+ images=image_tensor if image_tensor > 0 else None,
393
  do_sample=True,
394
  temperature=temperature,
395
  top_p=top_p,