Actual source code?

#1
by ayan4m1 - opened

Is there any actual source code for this repo? As it stands, it doesn't help me understand how the model caching works, things that are not covered in the example here.

Specifically, when trying to use the example with TypeScript:

    const prompts = processor.construct_prompts(task);

Property 'construct_prompts' does not exist on type 'Processor'.ts(2339)

And

    const result = processor.post_process_generation(
      generated_text,
      task,
      image.size
    );

Property 'post_process_generation' does not exist on type 'Processor'.ts(2339)

Check it out here - I assume this person just compiled it https://github.com/huggingface/transformers.js-examples/tree/main/florence2-webgpu @ayan4m1

Sign up or log in to comment