Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
Stormix committed Nov 12, 2023
1 parent bf491f5 commit 10816d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/lib/nsfw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ export class NSFWJS {

let model: tf.LayersModel | tf.GraphModel
if (endpoint == null) {
model = this.model
model = this.model!
} else {
if (this.model.hasOwnProperty('layers') && this.intermediateModels[endpoint] == null) {
if (this.model!.hasOwnProperty('layers') && this.intermediateModels[endpoint] == null) {
// @ts-ignore
const layer = this.model.layers.find((l) => l.name === endpoint)
this.intermediateModels[endpoint] = tf.model({
Expand Down

0 comments on commit 10816d8

Please sign in to comment.