Commit
·
9ae4caa
1
Parent(s):
d2b5bd4
UPdate
Browse files
app.py
CHANGED
|
@@ -47,7 +47,7 @@ def bot(input_message: str, db_info="", temperature=0.1, top_p=0.9, top_k=0, rep
|
|
| 47 |
|
| 48 |
input_ids = tok(messages, return_tensors="pt").input_ids
|
| 49 |
input_ids = input_ids.to(m.device)
|
| 50 |
-
streamer = TextIteratorStreamer(tok, timeout=
|
| 51 |
generate_kwargs = dict(
|
| 52 |
input_ids=input_ids,
|
| 53 |
max_new_tokens=max_new_tokens,
|
|
|
|
| 47 |
|
| 48 |
input_ids = tok(messages, return_tensors="pt").input_ids
|
| 49 |
input_ids = input_ids.to(m.device)
|
| 50 |
+
streamer = TextIteratorStreamer(tok, timeout=100.0, skip_prompt=True, skip_special_tokens=True)
|
| 51 |
generate_kwargs = dict(
|
| 52 |
input_ids=input_ids,
|
| 53 |
max_new_tokens=max_new_tokens,
|