Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -135,7 +135,7 @@ with gr.Blocks() as app:
|
|
| 135 |
stop_btn=gr.Button("Stop")
|
| 136 |
clear_btn=gr.Button("Clear")
|
| 137 |
client_choice=gr.Dropdown(label="Models",type='index',choices=[c for c in models],value=models[0],interactive=True)
|
| 138 |
-
custom_prompt=gr.Textbox(lines=5,value="<start_of_turn>
|
| 139 |
with gr.Column(scale=1):
|
| 140 |
with gr.Group():
|
| 141 |
rand = gr.Checkbox(label="Random Seed", value=True)
|
|
@@ -160,7 +160,8 @@ with gr.Blocks() as app:
|
|
| 160 |
|
| 161 |
|
| 162 |
client_choice.change(load_models,client_choice,[chat_b])
|
| 163 |
-
|
|
|
|
| 164 |
im_go=im_btn.click(get_screenshot,[chat_b,im_height,im_width,chatblock,theme,wait_time],img)
|
| 165 |
|
| 166 |
chat_sub=inp.submit(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,memory,client_choice,seed,temp,tokens,top_p,rep_p,chat_mem,custom_prompt],[chat_b,memory])
|
|
|
|
| 135 |
stop_btn=gr.Button("Stop")
|
| 136 |
clear_btn=gr.Button("Clear")
|
| 137 |
client_choice=gr.Dropdown(label="Models",type='index',choices=[c for c in models],value=models[0],interactive=True)
|
| 138 |
+
custom_prompt=gr.Textbox(lines=5,value="<start_of_turn>userUSER_INPUT<end_of_turn><start_of_turn>model\n")
|
| 139 |
with gr.Column(scale=1):
|
| 140 |
with gr.Group():
|
| 141 |
rand = gr.Checkbox(label="Random Seed", value=True)
|
|
|
|
| 160 |
|
| 161 |
|
| 162 |
client_choice.change(load_models,client_choice,[chat_b])
|
| 163 |
+
app.load(load_models,client_choice,[chat_b])
|
| 164 |
+
|
| 165 |
im_go=im_btn.click(get_screenshot,[chat_b,im_height,im_width,chatblock,theme,wait_time],img)
|
| 166 |
|
| 167 |
chat_sub=inp.submit(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,memory,client_choice,seed,temp,tokens,top_p,rep_p,chat_mem,custom_prompt],[chat_b,memory])
|