Skip to content

Commit

Permalink
Refactor ui_group function to format ui_message as
Browse files Browse the repository at this point in the history
a chatmark form
  • Loading branch information
yangbobo2021 committed Dec 18, 2023
1 parent 6de963c commit e795d50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libs/ui_utils/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ def ui_group(ui_message: List[Tuple]) -> Tuple:
items in ui_message are created by functions like:make_checkbox_control
"""
ui_message = "\n".join([m[1] for m in ui_message])
response = pipe_interaction(ui_message)
ui_message_str = "\n".join([m[1] for m in ui_message])

ui_message_str = f"""```chatmark type=form\n{ui_message_str}\n```\n"""
response = pipe_interaction(ui_message_str)

results = []
for m in ui_message:
Expand Down

0 comments on commit e795d50

Please sign in to comment.