Omnibus commited on
Commit
0681881
·
verified ·
1 Parent(s): 78ff2e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -192,16 +192,16 @@ with gr.Blocks() as app:
192
  test_json=gr.JSON(label="Test Output")
193
  #test_btn.click(test_models,None,test_json)
194
 
195
- c_comp=chat_b.change(chat_inf,[chat_b,model_state,client_choice,seed,temp,tokens,top_p,rep_p,chat_mem,custom_prompt],[chat_b,memory]))
196
 
197
  client_choice.change(load_models,client_choice,[chat_b,custom_prompt,model_state])
198
  app.load(load_models,client_choice,[chat_b,custom_prompt,model_state])
199
 
200
  im_go=im_btn.click(get_screenshot,[chat_b,im_height,im_width,chatblock,theme,wait_time],img)
201
 
202
- chat_sub=inp.submit(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,memory,model_state,client_choice,seed,temp,tokens,top_p,rep_p,chat_mem,custom_prompt],[chat_b,memory])
203
- go=btn.click(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,memory,model_state,client_choice,seed,temp,tokens,top_p,rep_p,chat_mem,custom_prompt],[chat_b,memory])
204
 
205
- stop_btn.click(None,None,None,cancels=[go,im_go,chat_sub])
206
  clear_btn.click(clear_fn,None,[inp,sys_inp,chat_b,memory])
207
  app.queue(default_concurrency_limit=10).launch()
 
192
  test_json=gr.JSON(label="Test Output")
193
  #test_btn.click(test_models,None,test_json)
194
 
195
+ c_comp=chat_b.change(chat_inf,[chat_b,model_state,client_choice,seed,temp,tokens,top_p,rep_p,chat_mem,custom_prompt],[chat_b])
196
 
197
  client_choice.change(load_models,client_choice,[chat_b,custom_prompt,model_state])
198
  app.load(load_models,client_choice,[chat_b,custom_prompt,model_state])
199
 
200
  im_go=im_btn.click(get_screenshot,[chat_b,im_height,im_width,chatblock,theme,wait_time],img)
201
 
202
+ #chat_sub=inp.submit(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,memory,model_state,client_choice,seed,temp,tokens,top_p,rep_p,chat_mem,custom_prompt],[chat_b,memory])
203
+ #go=btn.click(check_rand,[rand,seed],seed).then(chat_inf,[sys_inp,inp,chat_b,memory,model_state,client_choice,seed,temp,tokens,top_p,rep_p,chat_mem,custom_prompt],[chat_b,memory])
204
 
205
+ stop_btn.click(None,None,None,cancels=[go,im_go,chat_sub,c_comp])
206
  clear_btn.click(clear_fn,None,[inp,sys_inp,chat_b,memory])
207
  app.queue(default_concurrency_limit=10).launch()