basit123796 commited on
Commit
7134f20
·
verified ·
1 Parent(s): 208be49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -107,7 +107,7 @@ with gr.Blocks() as app:
107
  client_choice.change(load_models,client_choice,[chat_b])
108
  app.load(load_models,client_choice,[chat_b])
109
 
110
- chat_sub=inp.submit().run(chat_inf,[inp,chat_b,memory,client_choice,temp,tokens,top_p,rep_p,chat_mem],[chat_b,memory])
111
- go=btn.click().run(chat_inf,[inp,chat_b,memory,client_choice,temp,tokens,top_p,rep_p,chat_mem],[chat_b,memory])
112
 
113
  app.queue(default_concurrency_limit=10).launch()
 
107
  client_choice.change(load_models,client_choice,[chat_b])
108
  app.load(load_models,client_choice,[chat_b])
109
 
110
+ chat_sub=inp.submit().then(chat_inf,[inp,chat_b,memory,client_choice,temp,tokens,top_p,rep_p,chat_mem],[chat_b,memory])
111
+ go=btn.click().then(chat_inf,[inp,chat_b,memory,client_choice,temp,tokens,top_p,rep_p,chat_mem],[chat_b,memory])
112
 
113
  app.queue(default_concurrency_limit=10).launch()