Update app.py
Browse files
app.py
CHANGED
|
@@ -306,12 +306,12 @@ with demo:
|
|
| 306 |
decoding_method_radio = gr.Radio(
|
| 307 |
label="Decoding method",
|
| 308 |
choices=["greedy_search", "modified_beam_search"],
|
| 309 |
-
value="
|
| 310 |
)
|
| 311 |
|
| 312 |
num_active_paths_slider = gr.Slider(
|
| 313 |
minimum=1,
|
| 314 |
-
value=
|
| 315 |
step=1,
|
| 316 |
label="Number of active paths for modified_beam_search",
|
| 317 |
)
|
|
@@ -319,7 +319,7 @@ with demo:
|
|
| 319 |
punct_radio = gr.Radio(
|
| 320 |
label="Whether to add punctuation (Only for Chinese)",
|
| 321 |
choices=["Yes", "No"],
|
| 322 |
-
value="
|
| 323 |
)
|
| 324 |
|
| 325 |
with gr.Tabs():
|
|
|
|
| 306 |
decoding_method_radio = gr.Radio(
|
| 307 |
label="Decoding method",
|
| 308 |
choices=["greedy_search", "modified_beam_search"],
|
| 309 |
+
value="modified_beam_search",
|
| 310 |
)
|
| 311 |
|
| 312 |
num_active_paths_slider = gr.Slider(
|
| 313 |
minimum=1,
|
| 314 |
+
value=15,
|
| 315 |
step=1,
|
| 316 |
label="Number of active paths for modified_beam_search",
|
| 317 |
)
|
|
|
|
| 319 |
punct_radio = gr.Radio(
|
| 320 |
label="Whether to add punctuation (Only for Chinese)",
|
| 321 |
choices=["Yes", "No"],
|
| 322 |
+
value="No",
|
| 323 |
)
|
| 324 |
|
| 325 |
with gr.Tabs():
|