Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
403 |
-
|
404 |
-
|
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,
|