Use current input for Impersonate (continue impersonate feature) (#1147)

This commit is contained in:
Kamil Szurant 2023-05-09 07:37:42 +02:00 committed by GitHub
parent a5bb278631
commit 641500dcb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -714,6 +714,7 @@ def create_interface():
gen_events.append(shared.gradio['Impersonate'].click(
ui.gather_interface_values, [shared.gradio[k] for k in shared.input_elements], shared.gradio['interface_state']).then(
lambda x: x, shared.gradio['textbox'], shared.gradio['Chat input'], show_progress=False).then(
chat.impersonate_wrapper, shared.input_params, shared.gradio['textbox'], show_progress=False)
)