Spaces:
Sleeping
Sleeping
pizzagatakasugi
commited on
Commit
•
4333018
1
Parent(s):
d1a91c6
Update app.py
Browse files
app.py
CHANGED
@@ -133,11 +133,11 @@ if num in [str(x) for x in list(range(10))]:
|
|
133 |
min_new_tokens = tokens,
|
134 |
top_p = top_p,
|
135 |
top_k = top_k,
|
136 |
-
num_return_sequences =
|
137 |
)
|
138 |
output_list = []
|
139 |
# st.write(input)
|
140 |
-
for x in range(
|
141 |
output_text = tokenizer.decode(output_ids[x], skip_special_tokens=True,
|
142 |
clean_up_tokenization_spaces=False)
|
143 |
output_list.append(output_text)
|
|
|
133 |
min_new_tokens = tokens,
|
134 |
top_p = top_p,
|
135 |
top_k = top_k,
|
136 |
+
num_return_sequences = beams,
|
137 |
)
|
138 |
output_list = []
|
139 |
# st.write(input)
|
140 |
+
for x in range(beams):
|
141 |
output_text = tokenizer.decode(output_ids[x], skip_special_tokens=True,
|
142 |
clean_up_tokenization_spaces=False)
|
143 |
output_list.append(output_text)
|