Sakalti commited on
Commit
c335bb0
1 Parent(s): 4fd345c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -42,16 +42,17 @@ demo = gr.ChatInterface(
42
  respond,
43
  additional_inputs=[
44
  gr.Textbox(value="ユーザーの質問や依頼にのみ答えてください。ポジティブに答えてください", label="System message"),
45
- gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
46
- gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
47
  gr.Slider(
48
  minimum=0.1,
49
  maximum=1.0,
50
  value=0.95,
51
  step=0.05,
52
- label="Top-p (nucleus sampling)",
53
  ),
54
  ],
 
55
  )
56
 
57
 
 
42
  respond,
43
  additional_inputs=[
44
  gr.Textbox(value="ユーザーの質問や依頼にのみ答えてください。ポジティブに答えてください", label="System message"),
45
+ gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="新規トークン最大"),
46
+ gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="温度"),
47
  gr.Slider(
48
  minimum=0.1,
49
  maximum=1.0,
50
  value=0.95,
51
  step=0.05,
52
+ label="Top-p ( sampling)",
53
  ),
54
  ],
55
+ concurrency_limit=24 # 例: 同時に4つのリクエストを処理
56
  )
57
 
58