Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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:
|