Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -447,7 +447,7 @@ with gr.Blocks(title="BartlebyGPT", fill_height=True) as demo:
|
|
| 447 |
|
| 448 |
with gr.Row(elem_id="input_row"):
|
| 449 |
msg = gr.Textbox(
|
| 450 |
-
placeholder="
|
| 451 |
show_label=False,
|
| 452 |
lines=1,
|
| 453 |
max_lines=1,
|
|
@@ -460,9 +460,9 @@ with gr.Blocks(title="BartlebyGPT", fill_height=True) as demo:
|
|
| 460 |
with gr.Accordion("Params", open=False, elem_id="params_bar"):
|
| 461 |
system_box = gr.Textbox(value=SYSTEM_PROMPT_DEFAULT, label="System message", lines=2)
|
| 462 |
with gr.Row():
|
| 463 |
-
max_tokens = gr.Slider(1, 512, value=
|
| 464 |
-
temperature = gr.Slider(0.0, 2.0, value=0.
|
| 465 |
-
top_p = gr.Slider(0.1, 1.0, value=0.
|
| 466 |
|
| 467 |
# Wire up
|
| 468 |
msg.submit(on_user_submit, [msg, chatbot], [msg, chatbot], queue=False).then(
|
|
|
|
| 447 |
|
| 448 |
with gr.Row(elem_id="input_row"):
|
| 449 |
msg = gr.Textbox(
|
| 450 |
+
placeholder="What do you want?",
|
| 451 |
show_label=False,
|
| 452 |
lines=1,
|
| 453 |
max_lines=1,
|
|
|
|
| 460 |
with gr.Accordion("Params", open=False, elem_id="params_bar"):
|
| 461 |
system_box = gr.Textbox(value=SYSTEM_PROMPT_DEFAULT, label="System message", lines=2)
|
| 462 |
with gr.Row():
|
| 463 |
+
max_tokens = gr.Slider(1, 512, value=256, step=1, label="Max new tokens")
|
| 464 |
+
temperature = gr.Slider(0.0, 2.0, value=0.7, step=0.05, label="Temperature")
|
| 465 |
+
top_p = gr.Slider(0.1, 1.0, value=0.7, step=0.05, label="Top-p")
|
| 466 |
|
| 467 |
# Wire up
|
| 468 |
msg.submit(on_user_submit, [msg, chatbot], [msg, chatbot], queue=False).then(
|