Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def generate_response(input_text, temperature):
|
|
20 |
output = model.generate(
|
21 |
input_ids,
|
22 |
attention_mask=attention_mask,
|
23 |
-
max_length=
|
24 |
num_return_sequences=1,
|
25 |
temperature=temperature,
|
26 |
do_sample=True, # Set do_sample to True when using temperature
|
|
|
20 |
output = model.generate(
|
21 |
input_ids,
|
22 |
attention_mask=attention_mask,
|
23 |
+
max_length=100,
|
24 |
num_return_sequences=1,
|
25 |
temperature=temperature,
|
26 |
do_sample=True, # Set do_sample to True when using temperature
|