Update app.py
Browse files
app.py
CHANGED
@@ -100,11 +100,11 @@ with gr.Blocks(css=CSS) as demo:
|
|
100 |
with gr.Accordion("Show Model Parameters", open=False):
|
101 |
with gr.Row():
|
102 |
with gr.Column():
|
103 |
-
max_tokens = gr.Slider(20,
|
104 |
-
temperature = gr.Slider(0.
|
105 |
top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.95)
|
106 |
top_k = gr.Slider(0, 100, label="Top K", step=1, value=40)
|
107 |
-
repetition_penalty = gr.Slider(1.0, 2.0, label="Repetition Penalty", step=0.1, value=1.
|
108 |
|
109 |
system_msg = gr.Textbox(
|
110 |
start_message, label="System Message", interactive=True, visible=True, placeholder="System prompt. Provide instructions which you want the model to remember.", lines=5)
|
|
|
100 |
with gr.Accordion("Show Model Parameters", open=False):
|
101 |
with gr.Row():
|
102 |
with gr.Column():
|
103 |
+
max_tokens = gr.Slider(20, 2500, label="Max Tokens", step=20, value=500)
|
104 |
+
temperature = gr.Slider(0.0, 2.0, label="Temperature", step=0.1, value=0.4)
|
105 |
top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.95)
|
106 |
top_k = gr.Slider(0, 100, label="Top K", step=1, value=40)
|
107 |
+
repetition_penalty = gr.Slider(1.0, 2.0, label="Repetition Penalty", step=0.1, value=1.1)
|
108 |
|
109 |
system_msg = gr.Textbox(
|
110 |
start_message, label="System Message", interactive=True, visible=True, placeholder="System prompt. Provide instructions which you want the model to remember.", lines=5)
|