breadlicker45 commited on
Commit
ff1fe51
1 Parent(s): bc88e47

Update app_onnx.py

Browse files
Files changed (1) hide show
  1. app_onnx.py +2 -2
app_onnx.py CHANGED
@@ -583,12 +583,12 @@ if __name__ == "__main__":
583
  input_gen_events = gr.Slider(label="generate max n midi events", minimum=1, maximum=opt.max_gen,
584
  step=1, value=opt.max_gen // 2)
585
  with gr.Accordion("options", open=False):
586
- input_temp = gr.Slider(label="temperature", minimum=0.1, maximum=1.2, step=0.01, value=1)
587
  input_top_p = gr.Slider(label="top p", minimum=0.1, maximum=1, step=0.01, value=1.0)
588
  input_top_k = gr.Slider(label="top k", minimum=1, maximum=128, step=1, value=12)
589
  input_allow_cc = gr.Checkbox(label="allow midi cc event", value=True)
590
  input_render_audio = gr.Checkbox(label="render audio after generation", value=True)
591
- example3 = gr.Examples([[1, 0.94, 128], [1, 0.98, 20], [1, 0.98, 12]],
592
  [input_temp, input_top_p, input_top_k])
593
  run_btn = gr.Button("generate", variant="primary")
594
  # stop_btn = gr.Button("stop and output")
 
583
  input_gen_events = gr.Slider(label="generate max n midi events", minimum=1, maximum=opt.max_gen,
584
  step=1, value=opt.max_gen // 2)
585
  with gr.Accordion("options", open=False):
586
+ input_temp = gr.Slider(label="temperature", minimum=0.1, maximum=1.2, step=0.01, value=0.965)
587
  input_top_p = gr.Slider(label="top p", minimum=0.1, maximum=1, step=0.01, value=1.0)
588
  input_top_k = gr.Slider(label="top k", minimum=1, maximum=128, step=1, value=12)
589
  input_allow_cc = gr.Checkbox(label="allow midi cc event", value=True)
590
  input_render_audio = gr.Checkbox(label="render audio after generation", value=True)
591
+ example3 = gr.Examples([[0.965, 1.0, 128], [0.965, 1.0, 20], [0.965, 1.0, 12]],
592
  [input_temp, input_top_p, input_top_k])
593
  run_btn = gr.Button("generate", variant="primary")
594
  # stop_btn = gr.Button("stop and output")