shenzhi-wang commited on
Commit
3f1bfc5
1 Parent(s): 3845117

[change] change duration

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,7 +59,7 @@ def stream_chat(message: str, history: list, system: str, temperature: float, ma
59
  input_ids = tokenizer.apply_chat_template(conversation, add_generation_prompt=True, return_tensors="pt").to(
60
  model.device
61
  )
62
- streamer = TextIteratorStreamer(tokenizer, timeout=10.0, skip_prompt=True, skip_special_tokens=True)
63
 
64
  generate_kwargs = dict(
65
  input_ids=input_ids,
 
59
  input_ids = tokenizer.apply_chat_template(conversation, add_generation_prompt=True, return_tensors="pt").to(
60
  model.device
61
  )
62
+ streamer = TextIteratorStreamer(tokenizer, timeout=360.0, skip_prompt=True, skip_special_tokens=True)
63
 
64
  generate_kwargs = dict(
65
  input_ids=input_ids,