dwb2023 commited on
Commit
e8c32f6
·
verified ·
1 Parent(s): d85c6c2

Update app.py

Browse files

increase timeout

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -58,7 +58,7 @@ def generate(
58
  gr.Warning(f"Trimmed input from conversation as it was longer than {MAX_INPUT_TOKEN_LENGTH} tokens.")
59
  input_ids = input_ids.to(model.device)
60
 
61
- streamer = TextIteratorStreamer(tokenizer, timeout=10.0, skip_prompt=True, skip_special_tokens=True)
62
  generate_kwargs = dict(
63
  {"input_ids": input_ids},
64
  streamer=streamer,
 
58
  gr.Warning(f"Trimmed input from conversation as it was longer than {MAX_INPUT_TOKEN_LENGTH} tokens.")
59
  input_ids = input_ids.to(model.device)
60
 
61
+ streamer = TextIteratorStreamer(tokenizer, timeout=30.0, skip_prompt=True, skip_special_tokens=True)
62
  generate_kwargs = dict(
63
  {"input_ids": input_ids},
64
  streamer=streamer,