Spaces:
Paused
Paused
skip prompt
Browse files
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,
|