Skip to content

Commit

Permalink
auto clear after plugin click
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky committed Nov 1, 2023
1 parent 189de01 commit 4746a83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autogen/gradio_gui/gradio_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ def fn_area_visibility_2(a):
if not plugins[k].get("AsButton", True): continue
click_handle = plugins[k]["Button"].click(ArgsGeneralWrapper(plugins[k]["Function"]), [*input_combo], output_combo)
click_handle.then(on_report_generated, [cookies, file_upload, chatbot], [cookies, file_upload, chatbot])
if AUTO_CLEAR_TXT:
plugins[k]["Button"].click(lambda: ("",""), None, [txt, txt2])
cancel_handles.append(click_handle)
# Interaction between dropdown menu and dynamic button in function plugin
def on_dropdown_changed(k):
Expand Down

0 comments on commit 4746a83

Please sign in to comment.