Skip to content

Commit 9a3240d

Browse files
committed
one more, will we ever get rid of that old name? 🔫
1 parent df0c580 commit 9a3240d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎packages/inference/README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ import {
145145
InferenceClientHubApiError,
146146
} from "@huggingface/inference";
147147

148-
const hf = new HfInference();
148+
const client = new InferenceClient();
149149

150150
try {
151-
const result = await hf.textGeneration({
151+
const result = await client.textGeneration({
152152
model: "gpt2",
153153
inputs: "Hello, I'm a language model",
154154
});
@@ -177,7 +177,7 @@ try {
177177

178178
/// Catch all errors from @huggingface/inference
179179
try {
180-
const result = await hf.textGeneration({
180+
const result = await client.textGeneration({
181181
model: "gpt2",
182182
inputs: "Hello, I'm a language model",
183183
});

0 commit comments

Comments
 (0)