Skip to content

Commit 96ca05a

Browse files
committed
fixed add commit message btn
1 parent 81e1f2f commit 96ca05a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

examples/hf_demo_space/app.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,15 +313,17 @@ async def agent_loop(message: cl.Message, codeIdentifiers: Optional[list] = None
313313
tooltip="Next step",
314314
icon="fast-forward",
315315
payload={"msg_id": msg.id}
316-
),
317-
cl.Action(
316+
)
317+
]
318+
319+
msg.actions.append(
320+
cl.Action(
318321
name="checkout_commit_push",
319322
tooltip="A new branch will be created and the changes made so far will be commited and pushed to the upstream repository",
320323
icon="circle-fading-arrow-up",
321324
payload={"msg_id": msg.id}
322325
)
323-
]
324-
326+
)
325327
# # Send the final message
326328
await msg.send()
327329

0 commit comments

Comments
 (0)