AsirAsir commited on
Commit
4c860ff
1 Parent(s): 7c4b171

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -191,9 +191,9 @@ with gr.Blocks(theme="soft") as demo:
191
  with gr.Column(scale=1):
192
  top_k = gr.Slider(0, 10, value=5, step=1, label="top_k")
193
  top_p = gr.Slider(0, 1, value=0.8, step=0.8, label="top_p")
194
- temperature = gr.Slider(0.1, 2.0, value=0.85, step=0.1, label="temperature")
195
- repetition_penalty = gr.Slider(0.1, 2.0, value=1.0, step=0.1, label="repetition_penalty")
196
- max_dec_len = gr.Slider(1, 4096, value=512, step=1, label="max_dec_len")
197
  file_input = gr.File(label="上传角色对话语料(.csv)")
198
  role_description = gr.Textbox(label="您创建的角色描述", placeholder="输入角色描述", lines=2)
199
  upload_button = gr.Button("生成角色!")
 
191
  with gr.Column(scale=1):
192
  top_k = gr.Slider(0, 10, value=5, step=1, label="top_k")
193
  top_p = gr.Slider(0, 1, value=0.8, step=0.8, label="top_p")
194
+ temperature = gr.Slider(0.1, 2.0, value=0.85, step=0.1, label="temp")
195
+ repetition_penalty = gr.Slider(0.1, 2.0, value=1.0, step=0.1, label="repp")
196
+ max_dec_len = gr.Slider(1, 4096, value=512, step=1, label="max_new")
197
  file_input = gr.File(label="上传角色对话语料(.csv)")
198
  role_description = gr.Textbox(label="您创建的角色描述", placeholder="输入角色描述", lines=2)
199
  upload_button = gr.Button("生成角色!")