Fix configurations
Browse files
app.py
CHANGED
@@ -84,15 +84,15 @@ def main():
|
|
84 |
label='Repetition Penalty',
|
85 |
help="The parameter for repetition penalty",
|
86 |
min_value=1.0,
|
87 |
-
max_value=
|
88 |
value=1.0,
|
89 |
step=0.1
|
90 |
)
|
91 |
length_penalty = st.sidebar.slider(
|
92 |
label='Length Penalty',
|
93 |
help="Exponential penalty to the length",
|
94 |
-
min_value=
|
95 |
-
max_value=
|
96 |
value=1.0,
|
97 |
step=0.1
|
98 |
)
|
|
|
84 |
label='Repetition Penalty',
|
85 |
help="The parameter for repetition penalty",
|
86 |
min_value=1.0,
|
87 |
+
max_value=3.0,
|
88 |
value=1.0,
|
89 |
step=0.1
|
90 |
)
|
91 |
length_penalty = st.sidebar.slider(
|
92 |
label='Length Penalty',
|
93 |
help="Exponential penalty to the length",
|
94 |
+
min_value=0.0,
|
95 |
+
max_value=2.0,
|
96 |
value=1.0,
|
97 |
step=0.1
|
98 |
)
|