New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@huggingface/inference

Package Overview
Dependencies
Maintainers
3
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@huggingface/inference - npm Package Compare versions

Comparing version

to
2.3.3

5

package.json
{
"name": "@huggingface/inference",
"version": "2.3.2",
"version": "2.3.3",
"packageManager": "pnpm@8.3.1",

@@ -47,5 +47,2 @@ "license": "MIT",

},
"bundledDependencies": [
"@huggingface/shared"
],
"resolutions": {},

@@ -52,0 +49,0 @@ "scripts": {

12

README.md

@@ -14,5 +14,5 @@ # 🤗 Hugging Face Inference API

pnpm add @huggingface/inference
yarn add @huggingface/inference
pnpm add @huggingface/inference
```

@@ -22,6 +22,8 @@

```ts
// esm.sh
import { HfInference } from "https://esm.sh/@huggingface/inference"
// or npm:
import { HfInference } from "npm:@huggingface/inference"
```
// This should automatically load the types located at https://www.unpkg.com/@huggingface/inference@2.3.2/dist/index.d.ts
import { HfInference } from "https://www.unpkg.com/@huggingface/inference@2.3.2/dist/index.mjs"
```

@@ -28,0 +30,0 @@ ## Usage

import { InferenceOutputError } from "../../lib/InferenceOutputError";
import type { BaseArgs, Options, RequestArgs } from "../../types";
import { request } from "../custom/request";
import { base64FromBytes } from "@huggingface/shared";
import { base64FromBytes } from "../../../../shared";

@@ -6,0 +6,0 @@ export type ImageToImageArgs = BaseArgs & {

@@ -5,3 +5,3 @@ import { InferenceOutputError } from "../../lib/InferenceOutputError";

import type { RequestArgs } from "../../types";
import { base64FromBytes } from "@huggingface/shared";
import { base64FromBytes } from "../../../../shared";
import { toArray } from "../../utils/toArray";

@@ -8,0 +8,0 @@

import { InferenceOutputError } from "../../lib/InferenceOutputError";
import type { BaseArgs, Options, RequestArgs } from "../../types";
import { request } from "../custom/request";
import { base64FromBytes } from "@huggingface/shared";
import { base64FromBytes } from "../../../../shared";

@@ -6,0 +6,0 @@ export type VisualQuestionAnsweringArgs = BaseArgs & {