skytnt commited on
Commit
28c4315
1 Parent(s): 98bc719

top k maximum

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -292,7 +292,7 @@ if __name__ == "__main__":
292
  with gr.Accordion("options", open=False):
293
  input_temp = gr.Slider(label="temperature", minimum=0.1, maximum=1.2, step=0.01, value=1)
294
  input_top_p = gr.Slider(label="top p", minimum=0.1, maximum=1, step=0.01, value=0.98)
295
- input_top_k = gr.Slider(label="top k", minimum=1, maximum=20, step=1, value=12)
296
  input_allow_cc = gr.Checkbox(label="allow midi cc event", value=True)
297
  example3 = gr.Examples([[1, 0.98, 12], [1.2, 0.95, 8]], [input_temp, input_top_p, input_top_k])
298
  run_btn = gr.Button("generate", variant="primary")
 
292
  with gr.Accordion("options", open=False):
293
  input_temp = gr.Slider(label="temperature", minimum=0.1, maximum=1.2, step=0.01, value=1)
294
  input_top_p = gr.Slider(label="top p", minimum=0.1, maximum=1, step=0.01, value=0.98)
295
+ input_top_k = gr.Slider(label="top k", minimum=1, maximum=128, step=1, value=12)
296
  input_allow_cc = gr.Checkbox(label="allow midi cc event", value=True)
297
  example3 = gr.Examples([[1, 0.98, 12], [1.2, 0.95, 8]], [input_temp, input_top_p, input_top_k])
298
  run_btn = gr.Button("generate", variant="primary")