Skip to content

Commit

Permalink
Make: Change NPM name
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Apr 25, 2024
1 parent 83fc71a commit e97977e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
3 changes: 1 addition & 2 deletions javascript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ yarn add uform
### Embeddings

```js
import { getModel, Modality } from 'uform';
import { TextProcessor, TextEncoder, ImageEncoder, ImageProcessor } from 'uform';
import { getModel, Modality, TextProcessor, TextEncoder, ImageEncoder, ImageProcessor } from '@unum-cloud/uform';

const { configPath, modalityPaths, tokenizerPath } = await getModel({
modelId: 'unum-cloud/uform3-image-text-english-small',
Expand Down
3 changes: 1 addition & 2 deletions javascript/encoders_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import path from 'path';
import assert from 'assert';
import fetch from 'node-fetch';

import { getModel, Modality } from "./hub.mjs";
import { TextProcessor, TextEncoder, ImageEncoder, ImageProcessor } from "./encoders.mjs";
import { getModel, Modality, TextProcessor, TextEncoder, ImageEncoder, ImageProcessor } from './index.mjs';

// Check if the HuggingFace Hub API token is set in the environment variable.
let hf_token = process.env.HUGGINGFACE_HUB_TOKEN;
Expand Down
5 changes: 5 additions & 0 deletions javascript/index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Re-export everything from hub.mjs
export * from './hub.mjs';

// Re-export everything from encoders.mjs
export * from './encoders.mjs';
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "uform",
"name": "@unum-cloud/uform",
"type": "module",
"private": false,
"version": "2.0.2",
Expand All @@ -18,7 +18,12 @@
"start": "node javascript/encoders.mjs",
"test": "node javascript/encoders_test.js"
},
"main": "javascript/encoders.mjs",
"main": "javascript/index.mjs",
"files": [
"javascript/index.mjs",
"javascript/encoders.mjs",
"javascript/hub.js"
],
"directories": {
"doc": "docs"
},
Expand Down

0 comments on commit e97977e

Please sign in to comment.