rphrp1985 commited on
Commit
54122f4
·
verified ·
1 Parent(s): ffe142e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -50,8 +50,13 @@ def bot_streaming(message, history, max_new_tokens=250):
50
  messages.append({"role": "user", "content": [{"type": "text", "text": txt}]})
51
 
52
 
 
 
53
  texts = processor.apply_chat_template(messages, add_generation_prompt=True)
54
 
 
 
 
55
  if images == []:
56
  inputs = processor(text=texts, return_tensors="pt").to("cuda")
57
  else:
 
50
  messages.append({"role": "user", "content": [{"type": "text", "text": txt}]})
51
 
52
 
53
+ print("\n\nfinal messages ", messages)
54
+
55
  texts = processor.apply_chat_template(messages, add_generation_prompt=True)
56
 
57
+
58
+ print("\n\ntexts final chat text ", texts)
59
+
60
  if images == []:
61
  inputs = processor(text=texts, return_tensors="pt").to("cuda")
62
  else: