Rajan Sharma commited on
Commit
c049025
·
verified ·
1 Parent(s): 52af493

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -267,10 +267,11 @@ with gr.Blocks(theme="soft", css="style.css") as demo:
267
  )
268
  history_dropdown.change(view_history, inputs=[history_dropdown, assessment_history], outputs=[history_display])
269
  # We remove 'assessment_history' from the list of outputs, so it is no longer cleared.
 
270
  clear_btn.click(
271
- lambda: (None, None, []),
272
- outputs=[prompt_input, files_input, chat_history_output]
273
- )
274
  ping_btn.click(ping_cohere, outputs=[ping_out])
275
  privacy_link.click(lambda: gr.update(visible=True), outputs=[privacy_modal])
276
  close_privacy_btn.click(lambda: gr.update(visible=False), outputs=[privacy_modal])
 
267
  )
268
  history_dropdown.change(view_history, inputs=[history_dropdown, assessment_history], outputs=[history_display])
269
  # We remove 'assessment_history' from the list of outputs, so it is no longer cleared.
270
+ # We remove 'assessment_history' from the list of outputs, so it is no longer cleared.
271
  clear_btn.click(
272
+ lambda: (None, None, []),
273
+ outputs=[prompt_input, files_input, chat_history_output]
274
+ )
275
  ping_btn.click(ping_cohere, outputs=[ping_out])
276
  privacy_link.click(lambda: gr.update(visible=True), outputs=[privacy_modal])
277
  close_privacy_btn.click(lambda: gr.update(visible=False), outputs=[privacy_modal])