chansung commited on
Commit
3cd8d95
1 Parent(s): 8f33f4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -398,10 +398,14 @@ with gr.Blocks(css=MODEL_SELECTION_CSS, theme='gradio/soft') as demo:
398
  # _js="(v)=>{ setStorage('local_data',v) }"
399
  # )
400
 
 
 
 
 
401
  regen_event = regenerate.click(
402
- lambda history: history[:-1]
403
- [chatbot],
404
- [chatbot]
405
  ).then(
406
  rollback_last,
407
  [idx, local_data, chat_state,
 
398
  # _js="(v)=>{ setStorage('local_data',v) }"
399
  # )
400
 
401
+ def test(history):
402
+ print(history)
403
+ return history[:-1]
404
+
405
  regen_event = regenerate.click(
406
+ test,
407
+ chatbot,
408
+ chatbot
409
  ).then(
410
  rollback_last,
411
  [idx, local_data, chat_state,