skytnt commited on
Commit
a23f2ef
1 Parent(s): 8d6cb47

default top p k

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -463,11 +463,11 @@ if __name__ == "__main__":
463
  step=1, value=opt.max_gen // 2)
464
  with gr.Accordion("options", open=False):
465
  input_temp = gr.Slider(label="temperature", minimum=0.1, maximum=1.2, step=0.01, value=1)
466
- input_top_p = gr.Slider(label="top p", minimum=0.1, maximum=1, step=0.01, value=0.98)
467
- input_top_k = gr.Slider(label="top k", minimum=1, maximum=128, step=1, value=30)
468
  input_allow_cc = gr.Checkbox(label="allow midi cc event", value=True)
469
  input_render_audio = gr.Checkbox(label="render audio after generation", value=True)
470
- example3 = gr.Examples([[1, 0.95, 128], [1, 0.98, 20], [1, 0.98, 12]],
471
  [input_temp, input_top_p, input_top_k])
472
  run_btn = gr.Button("generate", variant="primary")
473
  # stop_btn = gr.Button("stop and output")
 
463
  step=1, value=opt.max_gen // 2)
464
  with gr.Accordion("options", open=False):
465
  input_temp = gr.Slider(label="temperature", minimum=0.1, maximum=1.2, step=0.01, value=1)
466
+ input_top_p = gr.Slider(label="top p", minimum=0.1, maximum=1, step=0.01, value=0.94)
467
+ input_top_k = gr.Slider(label="top k", minimum=1, maximum=128, step=1, value=20)
468
  input_allow_cc = gr.Checkbox(label="allow midi cc event", value=True)
469
  input_render_audio = gr.Checkbox(label="render audio after generation", value=True)
470
+ example3 = gr.Examples([[1, 0.94, 128], [1, 0.98, 20], [1, 0.98, 12]],
471
  [input_temp, input_top_p, input_top_k])
472
  run_btn = gr.Button("generate", variant="primary")
473
  # stop_btn = gr.Button("stop and output")