vsrinivas commited on
Commit
ea53642
·
verified ·
1 Parent(s): 0db0f6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -87,9 +87,9 @@ with gr.Blocks() as demo:
87
  system = gr.Textbox(label="System message", lines=2, value="A conversation between a user and an LLM-based AI assistant. The assistant gives helpful and honest answers.")
88
  temperature = gr.Slider(label="temperature", minimum=0.1, maximum=1, value=0.7, step=0.1)
89
  btn = gr.Button("Submit")
90
- clear = gr.ClearButton(components=[msg, chatbot], value="Clear console")
91
 
92
- btn.click(respond, inputs=[msg, chatbot, system], outputs=[msg, chatbot])
93
- msg.submit(respond, inputs=[msg, chatbot, system], outputs=[msg, chatbot]) #Press enter to submit
94
  gr.close_all()
95
  demo.queue().launch()
 
87
  system = gr.Textbox(label="System message", lines=2, value="A conversation between a user and an LLM-based AI assistant. The assistant gives helpful and honest answers.")
88
  temperature = gr.Slider(label="temperature", minimum=0.1, maximum=1, value=0.7, step=0.1)
89
  btn = gr.Button("Submit")
90
+ clear = gr.ClearButton(components=[msg, chatbot, system, temperature], value="Clear console")
91
 
92
+ btn.click(respond, inputs=[msg, chatbot, system, temperature], outputs=[msg, chatbot])
93
+ msg.submit(respond, inputs=[msg, chatbot, system, temperature], outputs=[msg, chatbot]) #Press enter to submit
94
  gr.close_all()
95
  demo.queue().launch()