Reintroduce in worker
This commit is contained in:
parent
f7099c9bfe
commit
3603ca3d9b
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
import { expose } from "comlink";
|
||||
import mlService from "services/machineLearning/machineLearningService";
|
||||
import { EnteFile } from "types/file";
|
||||
import downloadManager from "services/download";
|
||||
import { APPS } from "@ente/shared/apps/constants";
|
||||
|
||||
export class DedicatedMLWorker {
|
||||
public async closeLocalSyncContext() {
|
||||
|
@ -17,10 +19,12 @@ export class DedicatedMLWorker {
|
|||
}
|
||||
|
||||
public async sync(token: string, userID: number) {
|
||||
await downloadManager.init(APPS.PHOTOS, { token });
|
||||
return mlService.sync(token, userID);
|
||||
}
|
||||
|
||||
public async regenerateFaceCrop(token: string, faceID: string) {
|
||||
await downloadManager.init(APPS.PHOTOS, { token });
|
||||
return mlService.regenerateFaceCrop(faceID);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue