Spaces:
Running
Running
adj inputs
Browse filesSigned-off-by: peter szemraj <[email protected]>
app.py
CHANGED
@@ -52,8 +52,7 @@ def generate_text(
|
|
52 |
logging.info(f"Input too long {input_len} > {abs_max_length}, may cause errors")
|
53 |
result = generator(
|
54 |
prompt,
|
55 |
-
|
56 |
-
max_length=None, # in case of default max_length
|
57 |
min_length=input_len + 4,
|
58 |
penalty_alpha=penalty_alpha,
|
59 |
top_k=top_k,
|
|
|
52 |
logging.info(f"Input too long {input_len} > {abs_max_length}, may cause errors")
|
53 |
result = generator(
|
54 |
prompt,
|
55 |
+
max_length=gen_length + input_len,
|
|
|
56 |
min_length=input_len + 4,
|
57 |
penalty_alpha=penalty_alpha,
|
58 |
top_k=top_k,
|