mindee
Version:
Mindee Client Library for Node.js
19 lines (18 loc) • 665 B
JavaScript
import { InferenceModel } from "./inferenceModel.js";
import { InferenceFile } from "./inferenceFile.js";
import { InferenceJob } from "./inferenceJob.js";
export class BaseInference {
constructor(serverResponse) {
this.id = serverResponse["id"];
this.job = new InferenceJob(serverResponse["job"]);
this.model = new InferenceModel(serverResponse["model"]);
this.file = new InferenceFile(serverResponse["file"]);
}
toString() {
return ("Inference\n" +
"#########\n" +
this.job.toString() + "\n" +
this.model.toString() + "\n" +
this.file.toString() + "\n");
}
}