Add playwright E2E tests (#2174)

This commit is contained in:
Sam Freund
2025-12-04 22:25:48 -06:00
committed by GitHub
parent f821657d2b
commit 017b074eae
18 changed files with 421 additions and 46 deletions

View File

@@ -212,12 +212,23 @@ public class NeuralNetworkModelManager {
}
/**
* Returns the singleton instance of the NeuralNetworkModelManager
* Returns the singleton instance of the NeuralNetworkModelManager. Call getInstance() to use the
* default (no reset), or getInstance(true) to reset.
*
* @return The singleton instance
*/
public static NeuralNetworkModelManager getInstance() {
if (INSTANCE == null) {
return getInstance(false);
}
/**
* Returns the singleton instance of the NeuralNetworkModelManager, optionally resetting it.
*
* @param reset If true, resets the instance
* @return The singleton instance
*/
public static NeuralNetworkModelManager getInstance(boolean reset) {
if (INSTANCE == null || reset) {
INSTANCE = new NeuralNetworkModelManager();
}
return INSTANCE;