ysharma HF staff commited on
Commit
0426b89
1 Parent(s): cce1926

update a bug in inference

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -72,8 +72,8 @@ with gr.Blocks(css = "#chatbot {height: 400px, overflow: auto;}") as demo:
72
 
73
  #b1.click(predict, [t,s], [c,s])
74
  #inputs.submit(predict, [t,s], [c,s])
75
- inputs.submit( inference_chat, [inputs, top_p, temperature, top_k, repetition_penalty, state], [chatbot, state],)
76
- b1.click( inference_chat, [inputs, top_p, temperature, top_k, repetition_penalty, state], [chatbot, state],)
77
 
78
  gr.HTML(description)
79
  demo.queue().launch(debug=True)
 
72
 
73
  #b1.click(predict, [t,s], [c,s])
74
  #inputs.submit(predict, [t,s], [c,s])
75
+ inputs.submit( predict, [inputs, top_p, temperature, top_k, repetition_penalty, state], [chatbot, state],)
76
+ b1.click( predict, [inputs, top_p, temperature, top_k, repetition_penalty, state], [chatbot, state],)
77
 
78
  gr.HTML(description)
79
  demo.queue().launch(debug=True)