codys12 commited on
Commit
96b060f
1 Parent(s): ab23fe8

skip prompt

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ def generate(
54
  input_ids = input_ids[-MAX_INPUT_TOKEN_LENGTH:]
55
  gr.Warning("Trimmed input from conversation as it was longer than {MAX_INPUT_TOKEN_LENGTH} tokens.")
56
 
57
- streamer = TextIteratorStreamer(tokenizer, timeout=10.0, skip_special_tokens=True)
58
  generate_kwargs = dict(
59
  {"input_ids": input_ids},
60
  streamer=streamer,
 
54
  input_ids = input_ids[-MAX_INPUT_TOKEN_LENGTH:]
55
  gr.Warning("Trimmed input from conversation as it was longer than {MAX_INPUT_TOKEN_LENGTH} tokens.")
56
 
57
+ streamer = TextIteratorStreamer(tokenizer, timeout=10.0, skip_prompt=True, skip_special_tokens=True)
58
  generate_kwargs = dict(
59
  {"input_ids": input_ids},
60
  streamer=streamer,