masanorihirano
commited on
Commit
·
6a7e083
1
Parent(s):
f4d4880
update UI
Browse files
app.py
CHANGED
@@ -284,9 +284,8 @@ with gr.Blocks(
|
|
284 |
with gr.Row():
|
285 |
with gr.Column():
|
286 |
instruction = gr.Textbox(
|
287 |
-
lines=
|
288 |
)
|
289 |
-
inputs = gr.Textbox(lines=1, label="Input", placeholder="none")
|
290 |
with gr.Row():
|
291 |
with gr.Column(scale=3):
|
292 |
clear_button = gr.Button("Clear").style(full_width=True)
|
@@ -299,23 +298,23 @@ with gr.Blocks(
|
|
299 |
temperature = gr.Slider(
|
300 |
minimum=0,
|
301 |
maximum=1.0,
|
302 |
-
value=0.
|
303 |
step=0.05,
|
304 |
-
interactive=
|
305 |
label="Temperature",
|
306 |
)
|
307 |
max_tokens = gr.Slider(
|
308 |
minimum=20,
|
309 |
-
maximum=
|
310 |
-
value=
|
311 |
step=1,
|
312 |
interactive=True,
|
313 |
label="Max length (Pre-prompt + instruction + input + output)",
|
314 |
)
|
315 |
repetition_penalty = gr.Slider(
|
316 |
-
minimum=
|
317 |
maximum=5.0,
|
318 |
-
value=1.
|
319 |
step=0.1,
|
320 |
interactive=True,
|
321 |
label="Repetition penalty",
|
|
|
284 |
with gr.Row():
|
285 |
with gr.Column():
|
286 |
instruction = gr.Textbox(
|
287 |
+
lines=3, label="Instruction", placeholder="こんにちは"
|
288 |
)
|
|
|
289 |
with gr.Row():
|
290 |
with gr.Column(scale=3):
|
291 |
clear_button = gr.Button("Clear").style(full_width=True)
|
|
|
298 |
temperature = gr.Slider(
|
299 |
minimum=0,
|
300 |
maximum=1.0,
|
301 |
+
value=0.0,
|
302 |
step=0.05,
|
303 |
+
interactive=True,
|
304 |
label="Temperature",
|
305 |
)
|
306 |
max_tokens = gr.Slider(
|
307 |
minimum=20,
|
308 |
+
maximum=256,
|
309 |
+
value=128,
|
310 |
step=1,
|
311 |
interactive=True,
|
312 |
label="Max length (Pre-prompt + instruction + input + output)",
|
313 |
)
|
314 |
repetition_penalty = gr.Slider(
|
315 |
+
minimum=0.0,
|
316 |
maximum=5.0,
|
317 |
+
value=1.0,
|
318 |
step=0.1,
|
319 |
interactive=True,
|
320 |
label="Repetition penalty",
|