Spaces:
Running
Running
peter szemraj
commited on
Commit
•
96f4bcd
1
Parent(s):
cd45d79
:art: organize
Browse files
app.py
CHANGED
@@ -168,14 +168,20 @@ if __name__ == "__main__":
|
|
168 |
label="Number of Beams",
|
169 |
value=4,
|
170 |
)
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
gr.Markdown("---")
|
180 |
|
181 |
with gr.Column():
|
|
|
168 |
label="Number of Beams",
|
169 |
value=4,
|
170 |
)
|
171 |
+
with gr.Row():
|
172 |
+
|
173 |
+
no_repeat_ngram_size = gr.Radio(
|
174 |
+
choices=[1, 2, 3, 4],
|
175 |
+
label="no repeat ngram size",
|
176 |
+
value=2,
|
177 |
+
)
|
178 |
+
length_penalty = gr.Slider(
|
179 |
+
minimum=0.5,
|
180 |
+
maximum=1.0,
|
181 |
+
label="length penalty",
|
182 |
+
value=0.8,
|
183 |
+
step=0.1,
|
184 |
+
)
|
185 |
gr.Markdown("---")
|
186 |
|
187 |
with gr.Column():
|