Skip to content

Commit

Permalink
Merge branch 'main' into add-link-to-local-chat
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavs10 authored Feb 12, 2025
2 parents f5e6dbd + a32260f commit 6bb5f4e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ You can run our packages with vanilla JS, without any bundler, by using a CDN or

```html
<script type="module">
import { HfInference } from 'https://cdn.jsdelivr.net/npm/@huggingface/[email protected].0/+esm';
import { HfInference } from 'https://cdn.jsdelivr.net/npm/@huggingface/[email protected].3/+esm';
import { createRepo, commit, deleteRepo, listFiles } from "https://cdn.jsdelivr.net/npm/@huggingface/[email protected]/+esm";
</script>
```
Expand Down
2 changes: 1 addition & 1 deletion packages/inference/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@huggingface/inference",
"version": "3.3.0",
"version": "3.3.3",
"packageManager": "[email protected]",
"license": "MIT",
"author": "Tim Mikeladze <[email protected]>",
Expand Down
10 changes: 5 additions & 5 deletions packages/inference/src/tasks/cv/textToImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ export async function textToImage(args: TextToImageArgs, options?: Options): Pro
!args.provider || args.provider === "hf-inference" || args.provider === "sambanova"
? args
: {
...omit(args, ["inputs", "parameters"]),
...args.parameters,
...getResponseFormatArg(args.provider),
prompt: args.inputs,
};
...omit(args, ["inputs", "parameters"]),
...args.parameters,
...getResponseFormatArg(args.provider),
prompt: args.inputs,
};
const res = await request<TextToImageOutput | Base64ImageGeneration | OutputUrlImageGeneration>(payload, {
...options,
taskHint: "text-to-image",
Expand Down

0 comments on commit 6bb5f4e

Please sign in to comment.