Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -102,7 +102,7 @@ def main():
|
|
102 |
)
|
103 |
with col3:
|
104 |
num_return_sequences = st.number_input(
|
105 |
-
'Выберите параметр num_return_sequences', min_value=
|
106 |
help='Количество вариантов последовательностей, которые вернёт модель'
|
107 |
)
|
108 |
|
@@ -122,9 +122,9 @@ def main():
|
|
122 |
|
123 |
if button:
|
124 |
answers = generate(user_input, temperature, max_length, top_k, top_p, num_return_sequences)
|
125 |
-
st.write(answers)
|
126 |
for answer in answers:
|
127 |
-
st.
|
128 |
|
129 |
if __name__ == '__main__':
|
130 |
_max_width_()
|
|
|
102 |
)
|
103 |
with col3:
|
104 |
num_return_sequences = st.number_input(
|
105 |
+
'Выберите параметр num_return_sequences', min_value=1, max_value=4, value=3, step=1,
|
106 |
help='Количество вариантов последовательностей, которые вернёт модель'
|
107 |
)
|
108 |
|
|
|
122 |
|
123 |
if button:
|
124 |
answers = generate(user_input, temperature, max_length, top_k, top_p, num_return_sequences)
|
125 |
+
# st.write(answers)
|
126 |
for answer in answers:
|
127 |
+
st.info(answer)
|
128 |
|
129 |
if __name__ == '__main__':
|
130 |
_max_width_()
|