Mikhil-jivus commited on
Commit
92c80ef
1 Parent(s): 2f935e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ def generate(
67
  gr.Warning(f"Trimmed input from conversation as it was longer than {MAX_INPUT_TOKEN_LENGTH} tokens.")
68
  input_ids = input_ids.to(model.device)
69
 
70
- streamer = TextIteratorStreamer(tokenizer, timeout=20.0, skip_prompt=True, skip_special_tokens=True)
71
  generate_kwargs = dict(
72
  {"input_ids": input_ids},
73
  streamer=streamer,
 
67
  gr.Warning(f"Trimmed input from conversation as it was longer than {MAX_INPUT_TOKEN_LENGTH} tokens.")
68
  input_ids = input_ids.to(model.device)
69
 
70
+ streamer = TextIteratorStreamer(tokenizer, timeout=20.0, skip_prompt=False, skip_special_tokens=True)
71
  generate_kwargs = dict(
72
  {"input_ids": input_ids},
73
  streamer=streamer,