Skip to content

Commit

Permalink
fix: close adn restart
Browse files Browse the repository at this point in the history
  • Loading branch information
maffettone committed Apr 12, 2024
1 parent 66a4770 commit 3877c95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pdf_agents/sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def n_clusters(self):
@n_clusters.setter
def n_clusters(self, value):
self.model.set_params(n_clusters=int(value))
self.close_and_restart()

def server_registrations(self) -> None:
self._register_method("clear_caches")
Expand Down

0 comments on commit 3877c95

Please sign in to comment.