Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def generate(
|
|
47 |
input_ids = input_ids[:, -MAX_INPUT_TOKEN_LENGTH:]
|
48 |
gr.Warning(f"Trimmed input from conversation as it was longer than {MAX_INPUT_TOKEN_LENGTH} tokens.")
|
49 |
input_ids = input_ids.to(model.device)
|
50 |
-
|
51 |
streamer = TextIteratorStreamer(tokenizer, timeout=20.0, skip_prompt=True, skip_special_tokens=True)
|
52 |
generate_kwargs = dict(
|
53 |
{"input_ids": input_ids},
|
|
|
47 |
input_ids = input_ids[:, -MAX_INPUT_TOKEN_LENGTH:]
|
48 |
gr.Warning(f"Trimmed input from conversation as it was longer than {MAX_INPUT_TOKEN_LENGTH} tokens.")
|
49 |
input_ids = input_ids.to(model.device)
|
50 |
+
print(temperature)
|
51 |
streamer = TextIteratorStreamer(tokenizer, timeout=20.0, skip_prompt=True, skip_special_tokens=True)
|
52 |
generate_kwargs = dict(
|
53 |
{"input_ids": input_ids},
|