Spaces:
Sleeping
Sleeping
5 min timeout
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def predict(message, history):
|
|
25 |
{"role": "assistant", "content": ""}]
|
26 |
|
27 |
model_inputs = tokenizer.apply_chat_template(history_transformer_format, return_tensors="pt")
|
28 |
-
streamer = TextIteratorStreamer(tokenizer, timeout=
|
29 |
generate_kwargs = dict(
|
30 |
streamer=streamer,
|
31 |
max_new_tokens=1024,
|
|
|
25 |
{"role": "assistant", "content": ""}]
|
26 |
|
27 |
model_inputs = tokenizer.apply_chat_template(history_transformer_format, return_tensors="pt")
|
28 |
+
streamer = TextIteratorStreamer(tokenizer, timeout=300, skip_prompt=True, skip_special_tokens=True)
|
29 |
generate_kwargs = dict(
|
30 |
streamer=streamer,
|
31 |
max_new_tokens=1024,
|