update a bug in inference
Browse files
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(
|
76 |
-
b1.click(
|
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)
|