@huggingface/inference
Advanced tools
Comparing version
{ | ||
"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": { |
@@ -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 & { |
319
0.63%202897
-0.64%47
-11.32%5388
-0.63%