Update app.py
Browse files
app.py
CHANGED
@@ -121,9 +121,11 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
|
|
121 |
top_p=gr.Slider(label="Top-P",step=0.01, minimum=0.01, maximum=1.0, value=0.49)
|
122 |
rep_p=gr.Slider(label="Repetition Penalty",step=0.01, minimum=0.1, maximum=2.0, value=0.99)
|
123 |
chat_mem=gr.Number(label="Chat Memory", info="Number of previous chats to retain",value=4)
|
124 |
-
|
125 |
-
|
126 |
-
|
|
|
|
|
127 |
|
128 |
chat_sub=inp.submit(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,memory,seed,temp,tokens,top_p,rep_p,chat_mem,custom_prompt],[chat_b,memory])
|
129 |
go=btn.click(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,memory,seed,temp,tokens,top_p,rep_p,chat_mem,custom_prompt],[chat_b,memory])
|
|
|
121 |
top_p=gr.Slider(label="Top-P",step=0.01, minimum=0.01, maximum=1.0, value=0.49)
|
122 |
rep_p=gr.Slider(label="Repetition Penalty",step=0.01, minimum=0.1, maximum=2.0, value=0.99)
|
123 |
chat_mem=gr.Number(label="Chat Memory", info="Number of previous chats to retain",value=4)
|
124 |
+
with gr.Group():
|
125 |
+
with gr.Row():
|
126 |
+
btn = gr.Button("Chat")
|
127 |
+
stop_btn = gr.Button("Stop")
|
128 |
+
clear_btn = gr.Button("Clear")
|
129 |
|
130 |
chat_sub=inp.submit(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,memory,seed,temp,tokens,top_p,rep_p,chat_mem,custom_prompt],[chat_b,memory])
|
131 |
go=btn.click(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,memory,seed,temp,tokens,top_p,rep_p,chat_mem,custom_prompt],[chat_b,memory])
|