Spaces:
Paused
Paused
CreitinGameplays
commited on
Commit
•
63bf5db
1
Parent(s):
75e294c
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def generate(
|
|
50 |
gr.Warning(f"Trimmed input from conversation as it was longer than {MAX_INPUT_TOKEN_LENGTH} tokens.")
|
51 |
input_ids = input_ids.to(model.device)
|
52 |
|
53 |
-
streamer = TextIteratorStreamer(tokenizer, timeout=
|
54 |
generate_kwargs = dict(
|
55 |
{"input_ids": input_ids},
|
56 |
streamer=streamer,
|
|
|
50 |
gr.Warning(f"Trimmed input from conversation as it was longer than {MAX_INPUT_TOKEN_LENGTH} tokens.")
|
51 |
input_ids = input_ids.to(model.device)
|
52 |
|
53 |
+
streamer = TextIteratorStreamer(tokenizer, timeout=10.0, skip_prompt=True, skip_special_tokens=True)
|
54 |
generate_kwargs = dict(
|
55 |
{"input_ids": input_ids},
|
56 |
streamer=streamer,
|