Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyTNT committed Sep 24, 2024
1 parent ede08ee commit 4282a4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def template_response(*args, **kwargs):
with gr.Accordion("options", open=False):
input_temp = gr.Slider(label="temperature", minimum=0.1, maximum=1.2, step=0.01, value=1)
input_top_p = gr.Slider(label="top p", minimum=0.1, maximum=1, step=0.01, value=0.98)
input_top_k = gr.Slider(label="top k", minimum=1, maximum=128, step=1, value=20)
input_top_k = gr.Slider(label="top k", minimum=1, maximum=128, step=1, value=10)
input_allow_cc = gr.Checkbox(label="allow midi cc event", value=True)
input_amp = gr.Checkbox(label="enable amp", value=True)
example3 = gr.Examples([[1, 0.98, 20], [1, 0.98, 12]], [input_temp, input_top_p, input_top_k])
Expand Down
2 changes: 1 addition & 1 deletion app_onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def template_response(*args, **kwargs):
with gr.Accordion("options", open=False):
input_temp = gr.Slider(label="temperature", minimum=0.1, maximum=1.2, step=0.01, value=1)
input_top_p = gr.Slider(label="top p", minimum=0.1, maximum=1, step=0.01, value=0.98)
input_top_k = gr.Slider(label="top k", minimum=1, maximum=128, step=1, value=20)
input_top_k = gr.Slider(label="top k", minimum=1, maximum=128, step=1, value=10)
input_allow_cc = gr.Checkbox(label="allow midi cc event", value=True)
example3 = gr.Examples([[1, 0.98, 20], [1, 0.98, 12]], [input_temp, input_top_p, input_top_k])
run_btn = gr.Button("generate", variant="primary")
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ numpy
torch
transformers>=4.36
pytorch_lightning
gradio==4.36.0
gradio==4.43.0
pyfluidsynth

0 comments on commit 4282a4a

Please sign in to comment.