Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -60,12 +60,12 @@ if __name__ == "__main__":
|
|
60 |
with gr.Row():
|
61 |
gen = gr.Button("Generate")
|
62 |
clr = gr.Button("Clear")
|
|
|
|
|
|
|
63 |
outputs = gr.Textbox(lines=7, label='Output')
|
64 |
-
|
65 |
-
|
66 |
-
seed = gr.Slider(maximum=100000, value=1234, step=1, label='Seed')
|
67 |
-
out_seq_length = gr.Slider(maximum=256, value=128, minimum=32, step=1, label='Output Sequence Length')
|
68 |
-
min_gen_length = gr.Slider(maximum=64, value=0, step=1, label='Min Generate Length')
|
69 |
sampling_strategy = gr.Radio(choices=['BeamSearchStrategy', 'BaseStrategy'], value='BeamSearchStrategy', label='Search Strategy')
|
70 |
|
71 |
with gr.Tabs():
|
|
|
60 |
with gr.Row():
|
61 |
gen = gr.Button("Generate")
|
62 |
clr = gr.Button("Clear")
|
63 |
+
|
64 |
+
seed = gr.Slider(maximum=100000, value=1234, step=1, label='Seed')
|
65 |
+
out_seq_length = gr.Slider(maximum=256, value=128, minimum=32, step=1, label='Output Sequence Length')
|
66 |
outputs = gr.Textbox(lines=7, label='Output')
|
67 |
+
min_gen_length = gr.Slider(maximum=64, value=0, step=1, label='Min Generate Length')
|
68 |
+
|
|
|
|
|
|
|
69 |
sampling_strategy = gr.Radio(choices=['BeamSearchStrategy', 'BaseStrategy'], value='BeamSearchStrategy', label='Search Strategy')
|
70 |
|
71 |
with gr.Tabs():
|