You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+56-29Lines changed: 56 additions & 29 deletions
8000
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,28 @@
9
9
<br/>
10
10
</p>
11
11
12
+
```ts
13
+
awaitinference.translation({
14
+
model: 't5-base',
15
+
inputs: 'My name is Wolfgang and I live in Berlin'
16
+
})
17
+
18
+
awaitinference.textToImage({
19
+
model: 'stabilityai/stable-diffusion-2',
20
+
inputs: 'award winning high resolution photo of a giant tortoise/((ladybird)) hybrid, [trending on artstation]',
21
+
parameters: {
22
+
negative_prompt: 'blurry',
23
+
}
24
+
})
25
+
```
26
+
12
27
# Hugging Face JS libraries
13
28
14
29
This is a collection of JS libraries to interact with the Hugging Face API, with TS types included.
15
30
31
+
-[@huggingface/inference](packages/inference/README.md): Use the Inference API to make calls to 100,000+ Machine Learning models, or your own [inference endpoints](https://hf.co/docs/inference-endpoints/)!
16
32
-[@huggingface/hub](packages/hub/README.md): Interact with huggingface.co to create or delete repos and commit / download files
17
-
-[@huggingface/inference](packages/inference/README.md): Use the Inference API to make calls to 100,000+ Machine Learning models, or to your own [inference endpoints](https://hf.co/docs/inference-endpoints/)!
33
+
18
34
19
35
With more to come, like `@huggingface/endpoints` to manage your HF Endpoints!
20
36
@@ -29,15 +45,15 @@ The libraries are still very young, please help us by opening issues!
29
45
To install via NPM, you can download the libraries as needed:
0 commit comments