mzltest commited on
Commit
1d7b944
1 Parent(s): 18f2136

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,11 +16,11 @@ def generate_text(length, prefix, temperature,topk,topp,rep):
16
 
17
  input_length = gr.Slider(label="生成文本长度", minimum=10, maximum=500, value=100,step=10)
18
  input_prefix = gr.Textbox(label="起始文本")
19
- input_temperature = gr.Slider(label="生成温度", minimum=0, maximum=2, value=1, step=0.01)
20
  #input_batchsize = gr.Slider(label="生成的batch size", minimum=1, maximum=1, value=1,step=1)
21
  input_topk = gr.Slider(label="最高几选一", minimum=1, maximum=16, value=8, step=1)
22
  input_topp = gr.Slider(label="最高积累概率", minimum=0, maximum=1, value=0,step=0.01)
23
- input_repeat_penality = gr.Slider(label="重复罚值", minimum=0, maximum=3, value=1,step=0.01)
24
 
25
  output_text = gr.Textbox(label="生成的文本")
26
 
 
16
 
17
  input_length = gr.Slider(label="生成文本长度", minimum=10, maximum=500, value=100,step=10)
18
  input_prefix = gr.Textbox(label="起始文本")
19
+ input_temperature = gr.Slider(label="生成温度", minimum=0, maximum=2, value=1.2, step=0.01)
20
  #input_batchsize = gr.Slider(label="生成的batch size", minimum=1, maximum=1, value=1,step=1)
21
  input_topk = gr.Slider(label="最高几选一", minimum=1, maximum=16, value=8, step=1)
22
  input_topp = gr.Slider(label="最高积累概率", minimum=0, maximum=1, value=0,step=0.01)
23
+ input_repeat_penality = gr.Slider(label="重复罚值", minimum=0, maximum=2, value=0.6,step=0.01)
24
 
25
  output_text = gr.Textbox(label="生成的文本")
26