Skip to content

Commit

Permalink
Fix dev to work with new internals format
Browse files Browse the repository at this point in the history
  • Loading branch information
thekevinscott committed Dec 1, 2023
1 parent 9323b1a commit 8c5ec6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/browser/specific-model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ const loadModel = async (packageName: string, modelName: string) => {
console.log(importedModel)
const modelDefinition = (importedModel).default;
console.log(modelDefinition)
const { packageInformation, ...modelJSON }= modelDefinition;
const { packageInformation, ...modelJSON } = modelDefinition;

const fixture = await getFixture(packageName, modelName);

const img = await makeImg(fixture, `Original: ${packageName}/${modelName}`, 1);
const modelPath = getModelPath(packageName, modelJSON.path);
const modelPath = getModelPath(packageName, modelJSON._internals.path);
console.log(modelJSON)
const upscaledImg = await upscaleImage({
...modelJSON,
Expand Down

0 comments on commit 8c5ec6e

Please sign in to comment.