surkovvv commited on
Commit
bb80087
1 Parent(s): 91280a4

5 min timeout

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=120, skip_prompt=True, skip_special_tokens=True)
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,