Skip to content

Commit

Permalink
Update batch_Watch
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 committed Dec 5, 2023
1 parent 3f7d9f3 commit e67f52e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panel/chat/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,10 +570,10 @@ def _serialize_for_transformers(
@param.depends("_callback_is_running", watch=True)
async def _update_input_disabled(self):
if not self.show_stop or not self._callback_is_running:
with param.batch_watch(self):
with param.parameterized.batch_call_watchers(self):
self._buttons["send"].visible = True
self._buttons["stop"].visible = False
else:
with param.batch_watch(self):
with param.parameterized.batch_call_watchers(self):
self._buttons["send"].visible = False
self._buttons["stop"].visible = True

0 comments on commit e67f52e

Please sign in to comment.