Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ def stream_chat(
|
|
69 |
|
70 |
conversation.append({"role": "user", "content": message})
|
71 |
|
72 |
-
input_ids = tokenizer.apply_chat_template(conversation, return_tensors="pt").to(model.device)
|
73 |
|
74 |
streamer = TextIteratorStreamer(tokenizer, timeout=60.0, skip_prompt=True, skip_special_tokens=True)
|
75 |
|
|
|
69 |
|
70 |
conversation.append({"role": "user", "content": message})
|
71 |
|
72 |
+
input_ids = tokenizer.apply_chat_template(conversation, add_generation_prompt=True, return_tensors="pt").to(model.device)
|
73 |
|
74 |
streamer = TextIteratorStreamer(tokenizer, timeout=60.0, skip_prompt=True, skip_special_tokens=True)
|
75 |
|