Skip to content

Commit

Permalink
patched custom model deleted bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Kuang committed Jan 20, 2024
1 parent 5c60abb commit 79539d8
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,12 @@ private void addOnShutdownHook()
public void run()
{
// new File(pyFilePath).delete();
new File(modelPath).delete();

if (pyServer.isAlive()) {
if (settings.get(KEY_LACSS_MODEL) == PretrainedModel.Default)
{
new File(modelPath).delete();
}
if (pyServer.isAlive())
{
pyServer.destroy();
}
}
Expand Down

0 comments on commit 79539d8

Please sign in to comment.