Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
text-generation-inference
Commits
3ed4c0f3
Unverified
Commit
3ed4c0f3
authored
Sep 06, 2023
by
Julien Bouquillon
Committed by
GitHub
Sep 06, 2023
Browse files
docs: typo in streaming.js (#971)
Looks like an error
parent
c8bbbd81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docs/source/conceptual/streaming.md
docs/source/conceptual/streaming.md
+2
-2
No files found.
docs/source/conceptual/streaming.md
View file @
3ed4c0f3
...
...
@@ -121,9 +121,9 @@ If you're using the free Inference API, you can use `HfInference`. If you're usi
We can create a
`HfInferenceEndpoint`
providing our endpoint URL and credential.
```
js
import
{
HfInference
}
from
'
@huggingface/inference
'
import
{
HfInference
Endpoint
}
from
'
@huggingface/inference
'
const
hf
=
new
HfInference
(
'
https://YOUR_ENDPOINT.endpoints.huggingface.cloud
'
,
'
hf_YOUR_TOKEN
'
)
const
hf
=
new
HfInference
Endpoint
(
'
https://YOUR_ENDPOINT.endpoints.huggingface.cloud
'
,
'
hf_YOUR_TOKEN
'
)
// prompt
const
prompt
=
'
What can you do in Nuremberg, Germany? Give me 3 Tips
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment