Spaces:
Running
Running
Update app.py
Browse files
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="
|
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 (
|
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 |
|