ayushjswl commited on
Commit
832a7ae
·
verified ·
1 Parent(s): 25161fc

Added a functionality in UI

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -153,5 +153,12 @@ with gr.Blocks() as demo:
153
  inputs=[msg, chatbot, temperature, max_tokens],
154
  outputs=[chatbot, chatbot, context_box]
155
  )
 
 
 
 
 
 
 
156
 
157
  demo.launch()
 
153
  inputs=[msg, chatbot, temperature, max_tokens],
154
  outputs=[chatbot, chatbot, context_box]
155
  )
156
+
157
+ msg.submit(
158
+ chat_wrapper,
159
+ inputs=[msg, chatbot, temperature, max_tokens],
160
+ outputs=[chatbot, chatbot, context_box]
161
+ )
162
+
163
 
164
  demo.launch()