Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,8 +34,8 @@ def generate_text(prompt, max_length=200):
|
|
34 |
outputs = model.generate(
|
35 |
input_ids = inputs["input_ids"],
|
36 |
max_length=max_length,
|
37 |
-
num_beams=
|
38 |
-
num_return_sequences=
|
39 |
)
|
40 |
|
41 |
print(outputs)
|
|
|
34 |
outputs = model.generate(
|
35 |
input_ids = inputs["input_ids"],
|
36 |
max_length=max_length,
|
37 |
+
num_beams=1,
|
38 |
+
num_return_sequences=1
|
39 |
)
|
40 |
|
41 |
print(outputs)
|